Aug-10-2019, 10:18 AM
(Aug-10-2019, 07:23 AM)ndc85430 Wrote:(Aug-10-2019, 06:21 AM)mcmxl22 Wrote: Why dosen't this catch the error?Becauseinput
is throwing an exception
No, it´s the int() function that throws the exeption as the string 'a' cannot be converted into an integer number.
Quote:ValueError: invalid literal for int() with base 10: 'a'