Alan Becker just posted another great video about coding.
If you haven’t watched it yet, go watch it now!
In this article, I gonna to explain every detail.
NameError
Press enter or click to view image in full size
Initially, the Yellow dude tried to type hello directly. In this case, the Python interpreter thought it was a variable name, but it can be found hello in the context, so the interpreter will throw an NameError exception.