number = int("hello")Line-by-line explanation
"hello"is text.inttries to convert it into an integer.- That conversion is impossible.
- Python raises a
ValueError.
An exception is useful information, not proof that you are bad at programming. It tells you where an assumption failed.