From 02beaa8e7c59e8e057c01564ad2d941a37f8bde3 Mon Sep 17 00:00:00 2001 From: Madhushree B Date: Sun, 21 Apr 2024 14:31:36 +0200 Subject: [PATCH] update 01_22 for simplication --- content/solutions/01_22.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/solutions/01_22.py b/content/solutions/01_22.py index 8b6331f..3bbf466 100644 --- a/content/solutions/01_22.py +++ b/content/solutions/01_22.py @@ -1,4 +1,7 @@ name_1 = "Sandrine" name_2 = "Cheuk" -print(f"Is {name_1} > 5 and {name_2} < 7 characters? {(len(name_1) > 5) and (len(name_2) < 7)}") \ No newline at end of file +length_1 = len(name_1) > 5 +length_2 = len(name_2) < 7 + +print(f"Is {name_1} > 5 and {name_2} < 7 characters? {length_1 and length_2}") \ No newline at end of file