accessing function variables python nameerror name is not defined code example Example: python name not defined print(name)