Hello me again,
I was working on the count letter problem here.
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" # Write your unique_english_letters function here: def unique_english_letters(word): uniques = 0 for letter in letters: if letter in word: uniques += 1 return uniques
Thats the code that works but I don’t understand why the code wouldn’t count repeated letters.
For example if you run:
print(unique_english_letters("mississippi")) >>> 4
When it checks the first ‘s’ the count should go up as planned, but when it checks the second ‘s’ why wouldn’t it up the count since ‘s’ is still part of the original list letters.