nameerror name 'name' is not defined python code example Example: NameError: name 'ggt' is not defined It is quite clear in the error, the variable isn't defined