An error will occur!
>>> int('hello')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: 'hello'
The sentence contains useful information.
The most important thing is the ValueError
, which indicates an error in the value.