Letters

Report a typo

Write a program that calculates how many distinct letters the input word has. The word is stored in the variable word. Print out the result you'll get.

You must use a method for creating a set and a function that helps you compute the number of elements in it.

Sample Input 1:

mississippi

Sample Output 1:

4
Write a program in Python 3
word = input() # the input word
___

Create a free account to access the full topic