Demonstrates the for loop with a string : Loop « String « Python
- Python
- String
- Loop
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