Dec-12-2018, 08:41 PM
(This post was last modified: Dec-12-2018, 08:43 PM by ImLearningPython.)
It's done.
I have to sort the dictionary based off of user input.
q = quit
d = director
y = year
t = title
I have the year code and I have the director code. The title sort isn't working out so well. Director and title have to be sorted in alphabetical order. Which is why I made a list from the values in the dictionary so I could sort them and then use them as a value to reference the dictionary key and elements.
I have to sort the dictionary based off of user input.
q = quit
d = director
y = year
t = title
I have the year code and I have the director code. The title sort isn't working out so well. Director and title have to be sorted in alphabetical order. Which is why I made a list from the values in the dictionary so I could sort them and then use them as a value to reference the dictionary key and elements.