python compressed for concatenate string code example
Example: python compressed for concatenate string
LIST = [ 'a', 'b', 'c' ]
text = ' '.join(x for x in LIST)
print(text)
# OUTPUT
'a b c'
LIST = [ 'a', 'b', 'c' ]
text = ' '.join(x for x in LIST)
print(text)
# OUTPUT
'a b c'