+ 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

14th Feb 2022, 5:36 PM
max
max - avatar
1 Answer
0
Line 44: you need break Line 46: you need continue try to reduce by removing redundant code.
14th Feb 2022, 7:53 PM
Jayakrishna 🇼🇳