0
I'm not getting correctly python simple calculator. What is the correct way of doing it.
I've first tried it myself with while loop but 8 know it is not correct.plz explain 👇 https://code.sololearn.com/c9oZWUgRqafJ/?ref=app
8 odpowiedzi
+ 3
The indentation is all wrong. See the code again. Also, what have you done in the conditions of the if statements?? What is user_input() function?? Please specify if this is a pseudo code or a proper code.
+ 2
Wally please don't give direct solutions to the asker. We should only guide them, and then let them learn and solve the problem on their own.
+ 2
Sorry 😅
+ 1
Did you write this code?? If yes, then please specify what you have done so that your doubts can be cleared.
If no, then I won't give you the full code. But this is what you have to do.
1. Start an infinite loop.
2. Inside the loop, ask for 3 inputs (2 numbers and 1 operator)
3. Use if statements to check which operator was entered by the user and act accordingly.
4. Ask for input if the user wants to calculate again. If user enters 'n', break the loop
0
Can u plz share your code so that I can see the correct way of doing it. I'm a beginner and I am getting difficulty in understanding it.
0
Alright..
0
Thanks Wally
0
I'm sorry.....XXX I think you're right this makes us better in programming 🙏🙃😔