I am trying to display a dictionary according to the latest date time entry. my date time is in a tuple that is stored to a key and its the first value in the tuple. *** this dictionary reads content from a text file so my dictionary = {}
{'xavier': ('2020-08-13 13:34:01', 'running'), 'alvin': ('2020-08-14 14:34:10', 'basketball')}
anyone knows how to display it such that the key and values under 'alvin' displays first since the date time entry is the latest. something like this:
alvin ('2020-08-14 14:34:10', 'basketball')
xavier ('2020-08-13 14:34:01', 'running')
Thanks much!!