Idea
Read an error
When something breaks, Python names the line and the kind of problem. Read the last line first, then look at the line it points to.
print(nme)
gives
NameError: name 'nme' is not defined