84.3k views
1 vote
6. Write a Python program that should perform the following four tasks:

(i) After getting a word (of input) from the user, your program should use a
while (or for) loop to print out each of the letters of the word. Just remember
that strings in Python start with element !​

1 Answer

4 votes

word = input("Enter your word ")

i = 0

while i < len(word):

print(word[i])

i += 1

User SuavePirate
by
5.7k points