Calculator
Komil (9)

It's a simple calculator with few operators, please take a look and give me feedback on what I can do to shorten it (and run the same way it does with this coding) or ways to improve it (extra coding to make it efficient?)

You are viewing a single comment. View All
amilardovic (0)

My recommendations would both fall under the category of ERROR TRAPPING: Although you do address the invalid operator, I think you should do it when the user enters it, not after getting all the inputs. The second one is when you ask the user y or n, you should only accept y or n. Just my opinions to make the program a bit more bullet proof.

Komil (9)

@amilardovic Thanks for the idea, will work on it and update it on my python file.