Skip to content

Commit 2e5e770

Browse files
authored
Update errors.qmd
1 parent 58a07c6 commit 2e5e770

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/notes/python-lang/control-flow/errors.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ if True # OOPS, MISSING A COLON
9696

9797
A `ValueError` occurs when a function receives an argument of the correct type but an inappropriate value.
9898

99-
This can happen when trying to convert a string to an integer, but the string does not represent a number:
99+
For example, trying to convert a string to an integer, but the string is not numeric:
100100

101-
Example:
102101
```python
103-
int("hello") # OOPS, INVALID CONVERSION
102+
int("hello") # OOPS, INVALID VALUE PASSED TO THE FUNCTION
104103

105104
#> ValueError
106105
```

0 commit comments

Comments
 (0)