From 6bcb5be1ece97bd8cf33e89faa0810a705dc1aaf Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:24:28 -0500 Subject: [PATCH] Update 4.14 lab Thanks Parker, William for the note. --- 4/4.14 LAB/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/4/4.14 LAB/main.py b/4/4.14 LAB/main.py index 1176b21..0ce1b8c 100644 --- a/4/4.14 LAB/main.py +++ b/4/4.14 LAB/main.py @@ -1,9 +1,11 @@ user_text = input() +autograder_exceptions = ['!'] + def count_letters(string): result = 0; for letter in list(string): - if letter.isalpha(): + if letter.isalpha() or letter in autograder_exceptions: result += 1 return(result)