+ 3

Help with code from lesson (Python)

So I tried recreating the calculator from the python lessons here on the app, but it just keeps repeating constantly, is there any way to fix this? https://code.sololearn.com/c29qdu6etWIb/?ref=app

4th Aug 2019, 6:19 AM
Spencer stephen
Spencer stephen - avatar
3 Answers
+ 3
This calculator will work better if done on a Python shell.
4th Aug 2019, 6:40 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
It’ll keep repeating because your continuation condition on the while loop is always True and the only break away is by typing “quit”
4th Aug 2019, 7:09 AM
Jake
Jake - avatar
+ 1
You can have break after every print to close the operation
5th Aug 2019, 4:57 PM
Jaffer Ajmal
Jaffer Ajmal - avatar