Question: Write a procedure called unique_letters(str) that takes as its input a string of any length. The procedure should use a python set to reduce the
Write a procedure called unique_letters(str) that takes as its input a string of any length. The procedure should use a python set to reduce the string to a list of unique letters in the string and should then print out how many unique letters was found.
Do not call the procedure.
For example:
| Test | Result |
unique_letters("aaaaabbbbabbabbababccccccaaccca") | 3 |
unique_letters("Johan") | 5 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
