Share your repls and programming experiences
Basic Calculator - simple and easy to understand. Performs +, -, * and /https://repl.it/@muhayyo/My-Calculator
the best way isreturn a + b
and so on for all operator ;)
i broke it in seconds
you should make input checks so someone like me doesnt type in what they want instead of the corresponding number.
you should have used an else: statement so someone doesn't just type "kh sff d" and get an error, but it's cool
To make it easier and save a lot of space, you should have used the eval() function.
Good, but it is possible to make one in just one or two lines in Python 3
Thanks for comments!! I'll work on suggestions. Cheers