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
To see the keys:
for key in d.keys(): print(key)
To get the values that each key is referencing:
for key in d.keys(): print(d[key])
Add to a list:
for key in d.keys(): mylist.append(d[key])