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.
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:
pythonSample Output 1:
p
y
t
h
o
nCreate a free account to access the full topic