+ 1
How to convert list into string
https://code.sololearn.com/c9Lt5ixvRap8/?ref=app This doesn't work
3 Answers
+ 2
Amit Kumar
a = ['list', 'into', 'string']
b = ''.join(a)
print(b)
Output: 'listintostring'
Note the delimiter before the .join(). It is used to dictate the seperator of the list item.
b = ' '.join(a)
print(b)
Output: 'list into string'
b = '-'.join(a)
print(b)
Output: 'list-into-string'
Hope this helps clarify things đđ
0
Tomiwa Joseph aah thank you for the clarification of ''âïž