values = {
4 : review,
5 : enter,
2 : help,
9 : hello,
1 : happy,
}
I would like to be able to SORT the dictionary keys so that
I get
values = {
1 : happy,
2 : help,
4 : review,
5 : enter,
9 : hello,
}
I then I want to extract the second part the words (happy, help,review,enter,hello) into a list, in their order!
I have tried
test = sorted(values)
print(test)
which results in:
[1,2,4,5,9] which is the correct order, but how to retrieve the string values?