I learned python several years ago and I decided I should revisit the language and brush up my skills. I am creating a basic calculator program, and embarrassingly, I am having issues taking in the +,-,*.. operators. My code right now is just trying to print whatever operator I have inputed.
op = input("Enter your operation")
print(op)
When I compile the program with terminal using "python first.py" I get the following error:
But when I run the program using "python3 first.py" there is no error and when I print out op I get the correct operation I entered. Why is this happening and what is different in the versions that is giving me the error? Thanks for your guys explanation!
EDIT: I am assuming the python terminal command uses python version 2 and python3, obviously, means python version 3
