0
how to write a simple calculator in python, only so that it does not accept 8 and 9, such as 8,9,18,19,28,29,108,119 and so on
You need a basic calculator program that does not use eights or nines. Just 0 to 07, then 10 to 17, and so on.
1 Answer
+ 3
You can use a check statement for the input data and tell the user if its number was not accepted and has to be entered again. For another cases you will calculate the result.