for example I have this Dictionary
a = {'Sara': 3, 'Marie': 1, 'James': 1, 'Alex': 1} I know that I can print the (key,value) one by one with such this code:
for key,value in a.items():
print(key,value)
and the result would be something like this:
Sara 3
Marie 1
James 1
Alex 1
My Question is how can I reserve this order to :
Alex 1
James 1
Marie 1
Sara 3