+ 2
Looking for program feedback
I've recently made this python calculator program but as I'm a mobile programmer I can't actually see complete operation, can someone please tell me is it working properly or giving any error ?? https://sololearn.com/compiler-playground/cTlyh0V942YP/?ref=app
5 Réponses
+ 6
https://sololearn.com/compiler-playground/c2Clmy2Spf69/?ref=app
Your code have some errors, here is the perfectly working program
How to give input:-
give each input with a new line
for eg.
10
20
+
+ 2
Achha i got it thanku ❤️🫶 Alhaaz
+ 1
I'm also a mobile user and thus, unable to assist you in this regard. However, I want to suggest something.
Here, we can see your code, and by 'code' I mean the comments you have inserted.
But, as you may know, comments are not printed on the screen. So, for the benefit of the users, kindly use the print() function instead.
This code has a different approach. You can check it out if you wish:
https://sololearn.com/compiler-playground/c3Y1eRrQy74u/?ref=app
I'll be glad to receive feedback.
0
Your code has some errors I fixed it here
https://sololearn.com/compiler-playground/ctf5X5vqBS4V/?ref=app
Example input
[First number] [Second number] [1-6]
Explanation:
The 1-6 picks a option add/division or eg.
0
It works fine if you give input in new line like
2
4
5
The output is printed in the same line where user variable is read from input as no new line after that(no print statement just before print(user)).