LearnPy Hub
← Iterators & Generators problems
Easy

Letters One at a Time

Write a generator letters(word) that yields each letter in upper case. Read a word and print what list(letters(word)) gives.

Input

One word.

Output

A list.

Sample 1

Input
abc
Output
['A', 'B', 'C']

Sample 2

Input
Hi
Output
['H', 'I']
solution.py
Output appears here
Letters One at a Time · Python practice problem · LearnPy Hub