It looks like you are trying to start the Python interpreter by running the command python.
However the interpreter is already started. It is interpreting python as a name of a variable, and that name is not defined.
Try this instead and you should hopefully see that your Python installation is working as expected:
print("Hello world!")