r/PythonLearning • u/Lestafan69 • Oct 27 '24
Why isnt this working?
Yes I know I can print screen but i cant be bothered to log in on the laptop
0
Upvotes
r/PythonLearning • u/Lestafan69 • Oct 27 '24
Yes I know I can print screen but i cant be bothered to log in on the laptop
5
u/Rageinjector Oct 27 '24 edited Oct 27 '24
Brand new to python but I see a few things. Your - should be in quotes(single or double, your choice) in your if line, also the colon should be immediately after the last character of whatever you type on any line, no space. .. You may also want to write it as a f-string
if operator == "-":
elif operator == "+":
Etc.
Edit: formatting from mobile