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

What will be the output of the Python code snippet if the user inputs the string "hello"?

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

if ival > 0:
    print('Nice work')
else:
    print('Not a number')