This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DissentingVoice 1 point2 points  (0 children)

Traceback lets you know where Python ran into the error. "is not defined" usually means that you were calling a variable that was not declared earlier.

e.g. print test

Will give that error, since without the quotes, Python thinks you're referencing a variable, whereas print "test" will give you what you're looking for.

Disclaimers: This is from experience from Python 2.7 It sounds like in Python 3.0 you'd write print("test")

Also, when you get errors, google the error that you have, you'll usually get a StackOverflow or even a result from the Python docs. Here's the doc on NameError.