Mega Code Archive

 
Categories / Python / String
 

Printing a List

li = ['a', 'b', 'c']  print "\n".join(li)   # This is also a useful debugging trick when you're working with lists.