From 52cfbb973696804853a6c3b9bb62e67d87a32aea Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Fri, 31 Mar 2023 18:23:42 +0200 Subject: [PATCH] Update page 'Day 2 homework - Sloetjes' --- Day 2 homework - Sloetjes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day 2 homework - Sloetjes.md b/Day 2 homework - Sloetjes.md index 0d34dc3..f17eb41 100644 --- a/Day 2 homework - Sloetjes.md +++ b/Day 2 homework - Sloetjes.md @@ -154,7 +154,7 @@ def validate(input_string): raise ValueError("Crime detected!") ``` -In this example of the function, we check if the input string contains the `"\r"` character using the in keyword, and raise a `ValueError` exception if it does. This ensures that any input containing the `"\r"` character is explicitly disallowed and treated as potentially malicious. +In this example of the `validate()` function, we check if the input string contains the `"\r"` character using the in keyword, and raise a `ValueError` exception if it does. This ensures that any input containing the `"\r"` character is explicitly disallowed and treated as potentially malicious. We can then use this `validate()` function in the test cases as follows: