Mega Code Archive

 
Categories / Python Tutorial / Statement
 

For Loops

words = ['this', 'is', 'an', 'ex', 'parrot']  for word in words:    print word  numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]  for number in numbers:    print number