Tuples and sets · 10 / 16 Exercise Easy

Distinct letters

Objective

Create a Python program that counts how many different letters a text has.

Instructions

  • Read a text.
  • Ignore capital letters (A and a are the same letter) and anything that is not a letter (spaces, numbers and signs).
  • Use a set to store the letters and show how many there are.
Input
Hello World
Output
7

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise