From 5cf655c862aa3c8a2438cda6f1b52f17bca4cc3a Mon Sep 17 00:00:00 2001 From: scottan <33283688+Scottan@users.noreply.github.com> Date: Wed, 29 Apr 2026 20:27:17 +0100 Subject: [PATCH] Update 04-defensive_programming.md --- episodes/04-defensive_programming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/episodes/04-defensive_programming.md b/episodes/04-defensive_programming.md index bcf98cb..10a59ca 100644 --- a/episodes/04-defensive_programming.md +++ b/episodes/04-defensive_programming.md @@ -256,7 +256,7 @@ check_sign(val) ``` ```output -Value: nan is a number. +Value: nan is negative. ``` 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.