Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python String to array using list() method

# Split the string to array of characters

text1= "ABCDEFGH"
print(list(text1))

text2="A P P L E"
print(list(text2))
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #String #array #method
ADD COMMENT
Topic
Name
9+6 =