Jun-25-2020, 02:32 PM
(This post was last modified: Jun-25-2020, 02:33 PM by glennford49.)
(Jun-25-2020, 12:55 PM)deanhystad Wrote: Do you want a list of the dictionary keys, or do you want a list that contains the dictionary as a list? Should the end result look like this:
["glenn","elena","mama"]
or this:
[["glenn",1], ["elena", 2], ["mama",3]]
or something else?
i want something like this:
glenn=[ ]
elena=[ ]
mama=[ ]
is this possible using for loop in a dictionary or i have to use def ?
coz i dont want to declare those list, i want those list to be created on a for loop or in a def function if possible