輸入:
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])
輸出: Australia AUS
Brazil BRA
China CHN
Finland FIN
New Zealand NZL
Singapore SGP
United States of America USA