Python Practice › Loop Programs › Program 63
Each character on a new line
Write a Python program to print each character of a string on a new line.
Input
"Sqatools"
Output
S q a t o o l s
Approach
- Loop over the string;
print()adds a newline after each character.
Solution
for ch in "Sqatools": print(ch)Output
S q a t o o l s
Learn the concept
New to this topic? Read the lesson, then come back.