Split() not working?
list, python, split, string
Solution
It's actually easier than you might think.
L = list(s)
In Python, strings are iterable, just like lists. If you just need to iterate over the string, you don't even need to store it in a list.
Problem
So I am trying to split a string s: ``` s = "l=2&w=3&h=2" ``` However whenever I try to use the split() function on s and store the values in list L, this comes up: ``` L = s.split() L --> ['l=2&w=3&h=2'] ``` Am I doing something wrong? How do I split this string so I get: ``` L = ['l','=','2','&','w','=','3','&','h','=','2'] ```