I have dictionary, something like:
x = {"John":15,"Josh":2,"Emily":50,"Joey":12}
And I need to create something like this:
- Emily - 50
- John - 15
- Joey - 12
- Josh - 2
What would be the best way to do this? I have already tried to sort the dictionary somehow, but then it converted to list and I wasn't able to get both values (name and number).