Just convert the input string to an integer and catch the error if there is any.
You can look at str.isdigit() and str.isnumeric() methods as well
You can look at str.isdigit() and str.isnumeric() methods as well
catch input type error
|
|
Messages In This Thread |
catch input type error - by mcmxl22 - Aug-10-2019, 06:21 AM
RE: catch input type error - by ThomasL - Aug-10-2019, 06:27 AM
RE: catch input type error - by Lawr3y - Aug-10-2019, 06:51 AM
RE: catch input type error - by ndc85430 - Aug-10-2019, 07:23 AM
RE: catch input type error - by ThomasL - Aug-10-2019, 10:18 AM
RE: catch input type error - by wavic - Aug-11-2019, 07:33 AM
|