Free webinar! How to Make Generative AI Work for You
Get my free ticket+ 8
if o == "+":
elif o == "-":
...
Inputs are strings and you need strings to compare them with.
+ 3
Algfish31 do not ask for upvotes,t here is a high probability you will get downvotes,and why did you marked your comment as best?
Russ answer should have been marked as best ,
+ 1
No problem.
+ 1
4*2 says 8
+ 1
Algfish31 after testing it out only I said that ,again tested it's still showing 8
+ 1
Oh ok ,you posted a comment 16 minutes ago saying it's showing 2 ,so I thought you were still facing problem
+ 1
Try the exception Handling here, so that it will become more simple for users.
0
No need of using def
https://code.sololearn.com/cfSXu74DXbem/?ref=app
- 1
Easy
- 1
hello