Demonstrates the for loop with a string : Loop « String « Python






Demonstrates the for loop with a string

 

word = raw_input("Enter a word: ")

print "\nHere's each letter in your word:"
for letter in word:
    print letter

   
  








Related examples in the same category

1.Demonstrates string concatenation and repetition