r/Python • u/samfd11 • Jan 26 '15
manipulating arrays
I have a text file and need to make all the text into an array where each item is a letter i.e. the cow needs to be split in to ["t","h","e"," ","c","o","w"]. how could i do this as simply as possible?
0
Upvotes
1
u/elbiot Jan 26 '15
Fyi, lists in python are not arrays. They are linked lists. Arrays, like numpy.array, are different.
2
u/bwalk Jan 26 '15
But I doubt it's necessary, strings are iterable.