i have list
l1 = ['a','b','c','d','e'] when run print l1 returns:
['a','b','c','d','e'] when try
in l1 print ' '.join(map(str,a)) i
b c d e what want though
b c d e
what join doing returns string, concatenation of strings in sequence (in case l1). separator between elements string providing method.
>>> l1 = ['a','b','c','d','e'] >>> ' '.join(l1) 'a b c d e'
Comments
Post a Comment