NameError: Name Is Not Defined In Python - Python Guides
pythonguides.com › nameerror-name-is-not-definedAug 24, 2020 · NameError: name is not defined. In python, nameerror name is not defined is raised when we try to use the variable or function name which is not valid. Example: value = ['Mango', 'Apple', 'Orange'] print(values) After writing the above code, Ones you will print “ values ” then the error will appear as a “ NameError: name ‘values’ is not defined ”. Here, the variable name values are spelled wrong, so we get this error.