Update 4.14 lab
Thanks Parker, William for the note.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user