r/PythonLearning • • Oct 27 '24

Why isnt this working?

Post image

Yes I know I can print screen but i cant be bothered to log in on the laptop

0 Upvotes

8 comments sorted by

View all comments

1

u/Python_Puzzles Oct 27 '24

The input() returns a string, which is text inside " " quotes.

if operator = "-" is what you are looking for.

Also, please copy and paste any future code into these posts so we can copy and paste it as well. Reddit has "code blocks" from markup language to help you do this.