Answers for "how to turn a list of items into a string"

2

convert all items in list to string python

mylist = [str(i) for i in mylist]
Posted by: Guest on January-18-2021
0

convert list to string python

>>> mylist = ['spam', 'ham', 'eggs']
>>> print ', '.join(mylist)
spam, ham, eggs
Posted by: Guest on January-10-2021

Code answers related to "how to turn a list of items into a string"

Python Answers by Framework

Browse Popular Code Answers by Language