How can I use Python to split a string into characters?
How can I split a string into a list of characters? The str.split
method does not work for this purpose.
For example:
"foobar"
should become ['f', 'o', 'o', 'b', 'a', 'r']
.
How can I achieve this using python split string into characters?