String JOIN : String join « String « Python






String JOIN

String JOIN

print 'SPAM'.join(['eggs', 'sausage', 'ham', 'toast'])


           
       








Related examples in the same category

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