Answers for "string to array in python"

3

list to string python

list1 = ['1', '2', '3']
str1 = ''.join(list1)
Posted by: Guest on May-11-2020
5

python string to array

>>> text = 'a b c'
>>> text = text.split(' ')
>>> text
[ 'a', 'b', 'c' ]
Posted by: Guest on May-10-2020

Code answers related to "string to array in python"

Python Answers by Framework

Browse Popular Code Answers by Language