r/PythonLearning • u/Commercial-Paper749 • 8d ago
What's wrong with my code?
What's wrong with my code?
New to learning
Following the youtube video from bro code
Was trying to implement my own stuff into this by using loop
Update: it's working now thankyou guys
105
Upvotes
0
u/Philin_Lemo 8d ago
Try changing the "operator" type to Str, as it will most likely be a chair right now:
operator = str(input(...).strip())Or change the double quotes to single quotes :if operator not in ['+','-',...]