I have a dictionary d = {1:-0.3246, 2:-0.9185, 3:-3985, ...}.
d = {1:-0.3246, 2:-0.9185, 3:-3985, ...}
How do I extract all of the values of d into a list l?
d
l
If you want all of the values, use this:
dict_name_goes_here.values()
If you want all of the keys, use this:
dict_name_goes_here.keys()
IF you want all of the items (both keys and values), I would use this:
dict_name_goes_here.items()