I got the following error on the jupyter IDE that am using to learn python:
“NameError: name ‘int’ is not defined” because in the previous error, it complained that " account is not a package"
I did some research and did the following to see if the problem could be fixed:
- I created a package that I called package
- Created an empty init python file:" init.py.
- uploaded the init file and my python code and ran it and am still getting the same error
I then put this line “import init.py” on top of my python file, executed the code and the problem is still there.
Please help if you have an idea that I could try so that I do not waste this friday on this error
You must select a tag to post in this category. Please find the tag relating to the section of the course you are on E.g. loops, learn-compatibility
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!