Demonstrates the for loop with a string : Loop : String PYTHON examples


PYTHON examples » 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

   
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo String
» Loop