top_10_ranks_across_years (dictionary, int, int) -> list, list
This function accepts the super dictionary and produces 2 lists of tupleas. List 1 contains the top
10 countries and their ranks for year 1. List 1 (for year 1) is sorted by the ranks for that year. For
instance, for 2015, the list produces (note the sorted ranks):
[('Switzerland', 1), ('Iceland', 2), ('Denmark', 3), ('Norway',
4), ('Canada', 5), ('Finland', 6),
('Sweden', 8), ('New Zealand', 9),
('Netherlands', 7),
('Australia', 10)]
List 2 will be created such that it contains countries in the same order as List 1 but with
appropriate ranks for year 2. For instance, List 2 will be returned as:
[('Switzerland', 2), ('Iceland', 3), ('Denmark', 1), ('Norway',
4), ('Canada', 6), ('Finland', 5), ('Netherlands', 7),
('Sweden', 10), ('New Zealand', 8), ('Australia', 9)]