0

How do I fix my program?

I'm coding a simple calculator in python, but anytime I run the code the interpreter says there's a mistake .... I don't understand what's the problem nor how to fix it. may you explain me it? here's the code https://code.sololearn.com/cq2c2chunDab/?ref=app

8th Dec 2017, 1:58 PM
Kuiper
1 Answer
+ 5
The loop body is not indented correctly, that's why compiler won't understand that the break statement is within the while loop. Python code doesn't work if you don't use spacing properly. here is the fixed code :) Input format should be like: add 50 3 subtract 45 17 quit https://code.sololearn.com/cPIfJIOw3Ciq/#py
8th Dec 2017, 2:08 PM
Shamima Yasmin
Shamima Yasmin - avatar