flags! and minor styling tweaks

This commit is contained in:
2022-01-14 01:49:34 +00:00
parent 6a819f15e7
commit 36805a64a6
7 changed files with 103 additions and 33 deletions

View File

@@ -26,16 +26,22 @@ def main(args):
continue
country_list[country['name']['common']] = {
'answer': country['capital'][0],
'capital': country['capital'],
'countryname': country['name']['common'],
'region': country['region'],
'subregion': country['subregion'],
'languages': country['languages']
'languages': country['languages'],
'code': country['cca3'].lower()
}
capital_list[country['capital'][0]] = {
'answer': country['name']['common'],
'capital': country['capital'][0],
'countryname': country['name']['common'],
'region': country['region'],
'subregion': country['subregion'],
'languages': country['languages']
'languages': country['languages'],
'code': country['cca3'].lower()
}
print('countries = ', end='')