Letters of a word

Report a typo

Define a generator letters that would generate letters from a given word one by one.

You don't have to handle input or print anything.

Sample Input 1:

python

Sample Output 1:

p
y
t
h
o
n
Write a program in Python 3
def letters(word):
yield
___

Create a free account to access the full topic