print(next((country for code, country in COUNTRIES if code == 'AD')))
print(next((country for code, country in COUNTRIES if code == 'AD'), None))
print(next((country for code, country in COUNTRIES if code == 'Blah'), None))
d = dict(COUNTRIES)
print(d['AD'])
Getting an element from tuple of tuples in python