Question: name is not defined error?
Answer: NameError: global name '---' is not defined Python knows the purposes of certain names (such as names of built-in functions like print). Other names are defined within the program (such as variables). ... Forgetting to give a variable a value before using it in another statement.