Join a list : String join « String « Python






Join a list

Join a list
li = ['a', 'b', 'e'] 
 
 
print "\n".join(li)                              
           
       








Related examples in the same category

1.Joining stringsJoining strings
2.String JOINString JOIN
3.Printing a ListPrinting a List
4.split and joinsplit and join
5.Splitting a StringSplitting a String