r/learnpython • u/Valuable_Corner4797 • 3d ago
Easy Calculator (Python) :)
I didn't like the Windows Calculator, so I decided to develop my own CMD-based calculator. It's open-source, so anyone is welcome to use it!
1
Upvotes
View all comments
1
u/Educational-Paper-75 3d ago
Why not ask for the control words when you ask for the first float a. Saves the user having to enter a float he has no intention of using. You may also be able to refactor the main while loop getting rid of yeni and some of the continue or break statements. And use elif when appropriate.