Mega Code Archive

 
Categories / Python Tutorial / Statement
 

Iterating List with for Loops

li = ['a', 'b', 'e']  for s in li:                                 print s                                   print "\n".join(li)