Answers for "how to turn a string into an array python"

6

python string to array

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

string to array python

str = "MillieB11"
arr = list(str)
print(arr)
#['M', 'i', 'l', 'l', 'i', 'e', 'B', '1', '1']
Posted by: Guest on November-27-2021

Code answers related to "how to turn a string into an array python"

Python Answers by Framework

Browse Popular Code Answers by Language