+ 2
Why does my calculator only work sometimes?
Hello, I’ve created a calculator using beginner python concepts. Weirdly enough, the code works but from time to time it doesn’t and display a NameError. What’s wrong with the code? And taking into consideration that more experienced programmers will reply, how would you improve it? https://code.sololearn.com/cz09uwd8rJhZ/?ref=app
1 ответ
0
Line 44: you need
break
Line 46: you need
continue
try to reduce by removing redundant code.