Answers for "python unsplit a list"

10

python join list

''.join(list) # If you want to join with comma (,) then: ','.join(list)
Posted by: Guest on July-04-2020
-1

python join

# Joins all items in a list or tuple, using a specific separator
lst = ['a', 'b', 'c']
joinedLst = ', '.join(lst)
print(x) # Prints 'a, b, c'
Posted by: Guest on October-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language