+ 1

Can anybody fix my code for the ticket problem, it is in the description.

https://code.sololearn.com/cGAqqya95l5z/?ref=app

28th Mar 2023, 12:36 PM
Ayush Ghara
Ayush Ghara - avatar
2 Respuestas
+ 7
print total after completing the loop. Not inside loop.
28th Mar 2023, 12:42 PM
Jayakrishna 🇮🇳
+ 3
I tried your code in Pycharm just in case. It is working (just like Jayakrishna said). It just seems that sololearn is bad at handling the input() variable more than once.
28th Mar 2023, 1:48 PM
Hadrien BASSERY
Hadrien BASSERY - avatar