Solution Exercise 16 iterate through the characters of a string in Python

Exercise 16

Write a python program to display all characters of a string variable. Example for s = "Python", the program displays the characters:
P
y
t
h
o
n

Solution (First method)




Solution (second method)

 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 16 iterate through the characters of a string in Python

Leave a Reply