Skip to content

Commit 5cf655c

Browse files
authored
Update 04-defensive_programming.md
1 parent 80e2f6b commit 5cf655c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎episodes/04-defensive_programming.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ check_sign(val)
256256
```
257257

258258
```output
259-
Value: nan is a number.
259+
Value: nan is negative.
260260
```
261261

262262
However numpy does provide the `isnan()` function for testing if a value is NaN. Add an assertion test using this which will raise and error if the value is NaN.

0 commit comments

Comments
 (0)