LearnPy Hub
← Comprehensions problems
Easy

Initials Set

Read words and print the sorted list of distinct first letters, in upper case.

Input

One line of words.

Output

A list.

Sample 1

Input
mim mahi rafi sara
Output
['M', 'R', 'S']

Sample 2

Input
a
Output
['A']
solution.py
Output appears here
Initials Set · Python practice problem · LearnPy Hub