Name errors indicate that a variable you have referred to does not exist.
Check your spelling. You might have mis-typed a function, e.g. primt
x. Check you haven't attempted to do something with a variable before
assigning a value to it, e.g. typing the only the following into a module
will not work:
print x x = 5