In the context of the Code Challenge for String Methods (Python), the challenge is as written.
Write a function called
unique_english_lettersthat takes the string
wordas a parameter. The function should return the total number of unique letters in the string. Uppercase and lowercase letters should be counted as different letters.
We’ve given you a list of every uppercase and lower case letter in the English alphabet. It will be helpful to include that list in your function.
Since this challenge is related to practicing the use of string methods, I’m wondering why the provided solution to this challenge does not actually use any. I tried to find more information about how one could use the .count() method to find the total unique characters in a given string, but was unsuccessful and ended up coming up with the same solution as provided as the challenge solution. Without giving away the solution to this challenge outright, I do want to ask if there is a way to use the .count() method to count unique characters in a string in the context of this challenge.