We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 687fea2 + 2e5e770 commit e38f32cCopy full SHA for e38f32c
1 file changed
docs/notes/python-lang/control-flow/errors.qmd
@@ -96,11 +96,10 @@ if True # OOPS, MISSING A COLON
96
97
A `ValueError` occurs when a function receives an argument of the correct type but an inappropriate value.
98
99
-This can happen when trying to convert a string to an integer, but the string does not represent a number:
+For example, trying to convert a string to an integer, but the string is not numeric:
100
101
-Example:
102
```python
103
-int("hello") # OOPS, INVALID CONVERSION
+int("hello") # OOPS, INVALID VALUE PASSED TO THE FUNCTION
104
105
#> ValueError
106
```
0 commit comments