Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8
if o == "+": elif o == "-": ... Inputs are strings and you need strings to compare them with.
22nd Oct 2020, 8:27 PM
Russ
Russ - avatar
+ 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 ,
22nd Oct 2020, 10:23 PM
Abhay
Abhay - avatar
+ 1
No problem.
22nd Oct 2020, 8:27 PM
Russ
Russ - avatar
+ 1
4*2 says 8
22nd Oct 2020, 10:13 PM
Abhay
Abhay - avatar
+ 1
Algfish31 after testing it out only I said that ,again tested it's still showing 8
22nd Oct 2020, 10:17 PM
Abhay
Abhay - avatar
+ 1
Oh ok ,you posted a comment 16 minutes ago saying it's showing 2 ,so I thought you were still facing problem
22nd Oct 2020, 10:19 PM
Abhay
Abhay - avatar
+ 1
Try the exception Handling here, so that it will become more simple for users.
24th Oct 2020, 3:43 AM
Rudra Pratap Singh
Rudra Pratap Singh - avatar
24th Oct 2020, 6:42 AM
Bhavyank
Bhavyank - avatar
- 1
Easy
24th Oct 2020, 10:37 AM
артур кириенко
- 1
hello
24th Oct 2020, 12:40 PM
Jaydip Jikadra
Jaydip Jikadra - avatar