string to array in python code example
Example 1: list to string python
list1 = ['1', '2', '3']
str1 = ''.join(list1)
Example 2: python string to array
>>> text = 'a b c'
>>> text = text.split(' ')
>>> text
[ 'a', 'b', 'c' ]
Example 3: how to convert a string to a list python
#How to split a string into a list (Python)
#"separator" should be replaced with the string you want to split with
string.split("separator")