Input :
values = [('China', 'CHN'), ('Australia','AUS'), ('New Zealand','NZL'), ('Brazil', 'BRA'), ('Finland', 'FIN'), ('United States of America', 'USA'), ('Singapore', 'SGP')]
a_dict = create_country_alpha3_dictionary(values)
for key in sorted(a_dict ):
print(key, a_dict [key])
Output : Australia AUS
Brazil BRA
China CHN
Finland FIN
New Zealand NZL
Singapore SGP
United States of America USA