Answers for "python get list string"

6

python array to string

mystring = 'hello, world'

myarray = string1.split(', ') #output => [hello, world]

myjoin1 = ', '.join(myarray) #output => hello, world
myjoin2 = ' '.join(myarray) #output => hello world
myjoin3 = ','.join(myarray) #output => hello,world
Posted by: Guest on May-08-2020
0

how to convert a list to a string in python

array = []
STR = ''
for i in array:
    STR = STR+i
Posted by: Guest on May-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language