I have a list of strings of numbers, like this
["1", "2 3", "4 5 6"]
I want to turn this list into multiple other lists, so it will look like this
["1"] ["2 3"] ["4 5 6"]
with each of those being a separate list. How can I do this?
For context, these strings will be split and turned into integers so the final product will end up as
[1] [2,3] [4,5,6]
but that is not a part of this question, since I know how to get from step 2 to step 3.
I have found a somewhat similar post, but I can't figure out how to use dictionaries or list comprehensions like the answer suggests. I know how dictionaries work pretty well, but I am a little shaky on list comprehensions, so I apologize if there is an easy way to do it with that. Searching things like "create multiple lists in for loop python" and "make lists from other lists python" really only lead me to the post linked earlier.