Mega Code Archive

 
Categories / Python / String
 

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