I have a dictionary. I wish to convert each key/item pair to a separate list. Is this possible?
# Current dictionary
values_dict = {"label_1": [1,3,6,7], "label_2": [4,8,6,3], "label_3": [5,8,7,2]}
# From the dictionary above, I would like to make each key/item pair into a separate list so it can be used in matplotlib
# The numbers of keys/items in the dictionary may vary. Ideally, the finished lists would look like:
label_1_list = [1,3,6,7]
label_2_list = [4,8,6,3]
label_3_list = [5,8,7,2]
From my reading, creating lists dynamically is error prone. So I'm wondering the best way of creating these lists?