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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!