Sep-03-2020, 03:45 PM
(Sep-03-2020, 02:15 PM)DeaD_EyE Wrote: Iterate over the elements, access the key "X" and append it to a new list.
results = [] for element in L: ... # this is your taskhttps://docs.python.org/3/tutorial/datas...e-on-lists
https://docs.python.org/3/tutorial/datas...ctionaries
PS: L is a bad name.
Thank you very much for your kind answer!