Categories
How to turn a dict into a list?
There is a list, like:
[ { a:1, b:2, c:3 }, { a1:4, b1:5, c1:6 } ]
[(2,3,1), (5,6,4)]
Answer the question
In order to leave comments, you need to log in
[tuple(d.values()) for d in l]
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question