Update 4.14 lab

Thanks Parker, William for the note.
This commit is contained in:
Joe S 2021-01-31 18:24:28 -05:00
parent 5ea69d0956
commit 6bcb5be1ec
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
user_text = input() user_text = input()
autograder_exceptions = ['!']
def count_letters(string): def count_letters(string):
result = 0; result = 0;
for letter in list(string): for letter in list(string):
if letter.isalpha(): if letter.isalpha() or letter in autograder_exceptions:
result += 1 result += 1
return(result) return(result)