+ 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

28th Mar 2025, 7:29 AM
Drishti Pathak
Drishti Pathak - avatar
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 +
28th Mar 2025, 8:09 AM
Alhaaz
Alhaaz - avatar
+ 2
Achha i got it thanku ❤️🫶 Alhaaz
28th Mar 2025, 8:41 AM
Drishti Pathak
Drishti Pathak - avatar
+ 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.
29th Mar 2025, 12:30 PM
Ushasi Bhattacharya
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.
28th Mar 2025, 2:02 PM
•~♧Ace♤~•
•~♧Ace♤~• - avatar
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)).
30th Mar 2025, 6:49 AM
Mukesh Kumar
Mukesh Kumar - avatar