+ 1

What's the problem in it???:(

Please tell me problem in it :( | is mein kya problem hai ? | is mein samsya kya hai? https://code.sololearn.com/cZ71CsnAk5qa/#py

15th Jun 2020, 2:04 PM
Vedant Nandwana đŸ“ŽđŸ“”
Vedant Nandwana đŸ“ŽđŸ“” - avatar
4 Answers
+ 6
Before going in detail, can you please tell me what you are going to achieve with line 10: op = input(" your result is : ".title()) In the 2 previous lines you are asking user for 2 numbers. (BTW, it would be nice to let the user know what he has to input, instead of displaying nothing) So following these 2 inputs, an operator symbol should be asked, to get a perfect calculator. But the input prompt " your result is : " will be displayed. And what do you want to achieve by using .title()? To get the first character of the input as upper case?
15th Jun 2020, 6:17 PM
Lothar
Lothar - avatar
+ 2
Well you haven't inserted any code Please insert the code so we can check
15th Jun 2020, 2:06 PM
Hacker Badshah
Hacker Badshah - avatar
+ 2
The only problem is how you check for operation! You should do it like this: If op == "+": #something Elif op == "-": #something And so on....
15th Jun 2020, 2:30 PM
Hacker Badshah
Hacker Badshah - avatar
+ 1
now i have inserted it ook
15th Jun 2020, 2:08 PM
Vedant Nandwana đŸ“ŽđŸ“”
Vedant Nandwana đŸ“ŽđŸ“” - avatar