May-02-2018, 05:55 PM
Hello everyone,
I'm a beginner in python we are taking a python coding course in my school and we have been assigned a homework to do.
Please how can I make python differentiate between a valid arithmetic operation and an invalid one.
for example :
- Please enter an arithmetic operation: abc
Invalid arithmetic operation!
- Please enter an arithmetic operation: 83*121
Valid arithmetic operation!
I'm a beginner in python we are taking a python coding course in my school and we have been assigned a homework to do.
Please how can I make python differentiate between a valid arithmetic operation and an invalid one.
for example :
- Please enter an arithmetic operation: abc
Invalid arithmetic operation!
- Please enter an arithmetic operation: 83*121
Valid arithmetic operation!