r/PythonLearning • u/Radiant-Safe-1377 • Nov 09 '25
How can I improve?
I took Python at uni, but the topics were treated separately and we never got to put it all together, so I want to do small projects on my own to improve. Here's a little calculator I put together, critiques and tips are welcome. I'd like to practice some more, but idk what or where to start?
I hope this makes sense, English isn't my first language
163
Upvotes
1
u/luesewr Nov 09 '25
Personally, I like to keep my code very readable, some people might think it's a little too verbose, but I think writing it this way keeps it maintainable if you ever add more complicated logic to your operations. I also added a little extra logic to catch any errors that might occur when converting the user input to floats or trying dividing by zero: