الرجوع
تسجيل الدخول

When will the except block in the provided Python code snippet execute?

rawstr = input('Enter a number:')
try:
    ival = int(rawstr)
except:
    ival = -1