Question: nameerror global name ' ' is not defined?
Answer: NameError: global name '---' is not defined Other names are defined within the program (such as variables). If Python encounters a name that it doesn't recognize, you'll probably get this error. Some common causes of this error include: Forgetting to give a variable a value before using it in another statement.