Nov-12-2021, 02:50 AM
Wrap code in python tags please. There is a button in the editor for doing this.
What is your question. Do you not know how to raise an exception or do you not know how to identify if a str can be converted to a number?
This sounds like some kind of homework. What are the instructions for the assignment?
What is your question. Do you not know how to raise an exception or do you not know how to identify if a str can be converted to a number?
This sounds like some kind of homework. What are the instructions for the assignment?