From e1129a53d9200d582230975cece87874a934f77e Mon Sep 17 00:00:00 2001 From: Ekin <2006ekindurmus@gmail.com> Date: Sun, 30 Nov 2025 21:47:49 +0300 Subject: [PATCH] Fix case sensitivity for last name room assignment Added .upper() method to the last name check (line 26) to ensure 'zhao' is correctly identified as 'Z'. --- .../code_challenge_solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-for-beginners/09 - Handling multiple conditions/code_challenge_solution.py b/python-for-beginners/09 - Handling multiple conditions/code_challenge_solution.py index 9a027b08..4d160beb 100644 --- a/python-for-beginners/09 - Handling multiple conditions/code_challenge_solution.py +++ b/python-for-beginners/09 - Handling multiple conditions/code_challenge_solution.py @@ -23,7 +23,7 @@ last_name = input('what is your last name? ') last_name_first_letter = last_name[0:1] # if their last name starts with any other letter, tell them to go to room OTHER - if last_name_first_letter == 'Z': + if last_name_first_letter.upper() == 'Z': room = 'Z' else: room = 'OTHER'