livepython.net

80. Python Program to Print Each Letter of a Word

Easyfor loop

Overview

Your first for loop over a string.

Problem Statement

Read a word and print each of its letters on its own line. For example, for Sunny:

S
u
n
n
y

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

Sunny

Output

The output for that example:

S
u
n
n
y

The tests try 3 different inputs.

Learn this firstChapter 10 · Python for Loop: Repeat Code for Each Item
solution.py
# write your code here

EXPECTED OUTPUT

1S
2u
3n
4n
5y

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.