Home

Published

- 1 min read

the user to enter their name and display each letter in their name on a separate line python

img of the user to enter their name and display each letter in their name on a separate line python

The solution for this is noted below

the user to enter their name and display each letter in their name on a separate line python

Solution

   wq=input("enter your name: ")
word= wq
for index,letter in enumerate(word,1):
    print(index,":",letter)

Try other methods by searching on the site. That is if this doesn’t work