NameError
Python raises a name error, for example, when it encounters a name that has not previously been defined (and so it does not know what that name means).
Note that the text of the error message depends on the implementation. Different versions of Python and different checking tools will give slightly different messages.
pring(42)NameError: name 'pring' is not defined. Did you mean: 'print'?

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version a9143b0 (Sun, 14 Dec 2025 12:09:46 GMT)