+ 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
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?
+ 2
Well you haven't inserted any code
Please insert the code so we can check
+ 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....
+ 1
now i have inserted it
ook