Advertisement
CodeCrusader

Dictionary of Country Codes Python

Apr 4th, 2025
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.19 KB | Source Code | 0 0
  1. countryCodes = {
  2.     'AD': 'Andorra',
  3.     'AE': 'United Arab Emirates',
  4.     'AF': 'Afghanistan',
  5.     'AG': 'Antigua and Barbuda',
  6.     'AI': 'Anguilla',
  7.     'AL': 'Albania',
  8.     'AM': 'Armenia',
  9.     'AO': 'Angola',
  10.     'AR': 'Argentina',
  11.     'AS': 'American Samoa',
  12.     'AT': 'Austria',
  13.     'AU': 'Australia',
  14.     'AW': 'Aruba',
  15.     'AX': 'Åland Islands',
  16.     'AZ': 'Azerbaijan',
  17.     'BA': 'Bosnia and Herzegovina',
  18.     'BB': 'Barbados',
  19.     'BD': 'Bangladesh',
  20.     'BE': 'Belgium',
  21.     'BF': 'Burkina Faso',
  22.     'BG': 'Bulgaria',
  23.     'BH': 'Bahrain',
  24.     'BI': 'Burundi',
  25.     'BJ': 'Benin',
  26.     'BL': 'Saint Barthélemy',
  27.     'BM': 'Bermuda',
  28.     'BN': 'Brunei Darussalam',
  29.     'BO': 'Bolivia',
  30.     'BQ': 'Bonaire, Sint Eustatius and Saba',
  31.     'BR': 'Brazil',
  32.     'BS': 'Bahamas',
  33.     'BT': 'Bhutan',
  34.     'BV': 'Bouvet Island',
  35.     'BW': 'Botswana',
  36.     'BY': 'Belarus',
  37.     'BZ': 'Belize',
  38.     'CA': 'Canada',
  39.     'CC': 'Cocos (Keeling) Islands',
  40.     'CD': 'Congo, Democratic Republic of the',
  41.     'CF': 'Central African Republic',
  42.     'CG': 'Congo',
  43.     'CH': 'Switzerland',
  44.     'CI': 'Côte d\'Ivoire',
  45.     'CK': 'Cook Islands',
  46.     'CL': 'Chile',
  47.     'CM': 'Cameroon',
  48.     'CN': 'China',
  49.     'CO': 'Colombia',
  50.     'CR': 'Costa Rica',
  51.     'CU': 'Cuba',
  52.     'CV': 'Cabo Verde',
  53.     'CW': 'Curaçao',
  54.     'CX': 'Christmas Island',
  55.     'CY': 'Cyprus',
  56.     'CZ': 'Czechia',
  57.     'DE': 'Germany',
  58.     'DJ': 'Djibouti',
  59.     'DK': 'Denmark',
  60.     'DM': 'Dominica',
  61.     'DO': 'Dominican Republic',
  62.     'DZ': 'Algeria',
  63.     'EC': 'Ecuador',
  64.     'EE': 'Estonia',
  65.     'EG': 'Egypt',
  66.     'EH': 'Western Sahara',
  67.     'ER': 'Eritrea',
  68.     'ES': 'Spain',
  69.     'ET': 'Ethiopia',
  70.     'FI': 'Finland',
  71.     'FJ': 'Fiji',
  72.     'FM': 'Micronesia (Federated States of)',
  73.     'FO': 'Faroe Islands',
  74.     'FR': 'France',
  75.     'GA': 'Gabon',
  76.     'GB': 'United Kingdom of Great Britain and Northern Ireland',
  77.     'GD': 'Grenada',
  78.     'GE': 'Georgia',
  79.     'GF': 'French Guiana',
  80.     'GG': 'Guernsey',
  81.     'GH': 'Ghana',
  82.     'GI': 'Gibraltar',
  83.     'GL': 'Greenland',
  84.     'GM': 'Gambia',
  85.     'GN': 'Guinea',
  86.     'GP': 'Guadeloupe',
  87.     'GQ': 'Equatorial Guinea',
  88.     'GR': 'Greece',
  89.     'GT': 'Guatemala',
  90.     'GU': 'Guam',
  91.     'GW': 'Guinea-Bissau',
  92.     'GY': 'Guyana',
  93.     'HK': 'Hong Kong',
  94.     'HM': 'Heard Island and McDonald Islands',
  95.     'HN': 'Honduras',
  96.     'HR': 'Croatia',
  97.     'HT': 'Haiti',
  98.     'HU': 'Hungary',
  99.     'ID': 'Indonesia',
  100.     'IE': 'Ireland',
  101.     'IL': 'Israel',
  102.     'IM': 'Isle of Man',
  103.     'IN': 'India',
  104.     'IO': 'British Indian Ocean Territory',
  105.     'IQ': 'Iraq',
  106.     'IR': 'Iran (Islamic Republic of)',
  107.     'IS': 'Iceland',
  108.     'IT': 'Italy',
  109.     'JE': 'Jersey',
  110.     'JM': 'Jamaica',
  111.     'JO': 'Jordan',
  112.     'JP': 'Japan',
  113.     'KE': 'Kenya',
  114.     'KG': 'Kyrgyzstan',
  115.     'KH': 'Cambodia',
  116.     'KI': 'Kiribati',
  117.     'KM': 'Comoros',
  118.     'KN': 'Saint Kitts and Nevis',
  119.     'KP': 'Korea (Democratic People\'s Republic of)',
  120.     'KR': 'Korea (Republic of)',
  121.     'KW': 'Kuwait',
  122.     'KY': 'Cayman Islands',
  123.     'KZ': 'Kazakhstan',
  124.     'LA': 'Lao People\'s Democratic Republic',
  125.     'LB': 'Lebanon',
  126.     'LC': 'Saint Lucia',
  127.     'LI': 'Liechtenstein',
  128.     'LK': 'Sri Lanka',
  129.     'LR': 'Liberia',
  130.     'LS': 'Lesotho',
  131.     'LT': 'Lithuania',
  132.     'LU': 'Luxembourg',
  133.     'LV': 'Latvia',
  134.     'LY': 'Libya',
  135.     'MA': 'Morocco',
  136.     'MC': 'Monaco',
  137.     'MD': 'Moldova (Republic of)',
  138.     'ME': 'Montenegro',
  139.     'MF': 'Saint Martin (French part)',
  140.     'MG': 'Madagascar',
  141.     'MH': 'Marshall Islands',
  142.     'MK': 'North Macedonia',
  143.     'ML': 'Mali',
  144.     'MM': 'Myanmar',
  145.     'MN': 'Mongolia',
  146.     'MO': 'Macao',
  147.     'MP': 'Northern Mariana Islands',
  148.     'MQ': 'Martinique',
  149.     'MR': 'Mauritania',
  150.     'MS': 'Montserrat',
  151.     'MT': 'Malta',
  152.     'MU': 'Mauritius',
  153.     'MV': 'Maldives',
  154.     'MW': 'Malawi',
  155.     'MX': 'Mexico',
  156.     'MY': 'Malaysia',
  157.     'MZ': 'Mozambique',
  158.     'NA': 'Namibia',
  159.     'NC': 'New Caledonia',
  160.     'NE': 'Niger',
  161.     'NF': 'Norfolk Island',
  162.     'NG': 'Nigeria',
  163.     'NI': 'Nicaragua',
  164.     'NL': 'Netherlands',
  165.     'NO': 'Norway',
  166.     'NP': 'Nepal',
  167.     'NR': 'Nauru',
  168.     'NU': 'Niue',
  169.     'NZ': 'New Zealand',
  170.     'OM': 'Oman',
  171.     'PA': 'Panama',
  172.     'PE': 'Peru',
  173.     'PF': 'French Polynesia',
  174.     'PG': 'Papua New Guinea',
  175.     'PH': 'Philippines',
  176.     'PK': 'Pakistan',
  177.     'PL': 'Poland',
  178.     'PM': 'Saint Pierre and Miquelon',
  179.     'PN': 'Pitcairn',
  180.     'PR': 'Puerto Rico',
  181.     'PT': 'Portugal',
  182.     'PW': 'Palau',
  183.     'PY': 'Paraguay',
  184.     'QA': 'Qatar',
  185.     'RE': 'Réunion',
  186.     'RO': 'Romania',
  187.     'RS': 'Serbia',
  188.     'RU': 'Russian Federation',
  189.     'RW': 'Rwanda',
  190.     'SA': 'Saudi Arabia',
  191.     'SB': 'Solomon Islands',
  192.     'SC': 'Seychelles',
  193.     'SD': 'Sudan',
  194.     'SE': 'Sweden',
  195.     'SG': 'Singapore',
  196.     'SH': 'Saint Helena, Ascension and Tristan da Cunha',
  197.     'SI': 'Slovenia',
  198.     'SJ': 'Svalbard and Jan Mayen',
  199.     'SK': 'Slovakia',
  200.     'SL': 'Sierra Leone',
  201.     'SM': 'San Marino',
  202.     'SN': 'Senegal',
  203.     'SO': 'Somalia',
  204.     'SR': 'Suriname',
  205.     'SS': 'South Sudan',
  206.     'ST': 'Sao Tome and Principe',
  207.     'SV': 'El Salvador',
  208.     'SX': 'Sint Maarten (Dutch part)',
  209.     'SY': 'Syrian Arab Republic',
  210.     'SZ': 'Eswatini',
  211.     'TC': 'Turks and Caicos Islands',
  212.     'TD': 'Chad',
  213.     'TF': 'French Southern Territories',
  214.     'TG': 'Togo',
  215.     'TH': 'Thailand',
  216.     'TJ': 'Tajikistan',
  217.     'TK': 'Tokelau',
  218.     'TL': 'Timor-Leste',
  219.     'TM': 'Turkmenistan',
  220.     'TN': 'Tunisia',
  221.     'TO': 'Tonga',
  222.     'TR': 'Türkiye',
  223.     'TT': 'Trinidad and Tobago',
  224.     'TV': 'Tuvalu',
  225.     'TW': 'Taiwan',
  226.     'TZ': 'Tanzania, United Republic of',
  227.     'UA': 'Ukraine',
  228.     'UG': 'Uganda',
  229.     'US': 'United States of America',
  230.     'UY': 'Uruguay',
  231.     'UZ': 'Uzbekistan',
  232.     'VA': 'Holy See',
  233.     'VC': 'Saint Vincent and the Grenadines',
  234.     'VE': 'Venezuela (Bolivarian Republic of)',
  235.     'VG': 'Virgin Islands (British)',
  236.     'VI': 'Virgin Islands (U.S.)',
  237.     'VN': 'Viet Nam',
  238.     'VU': 'Vanuatu',
  239.     'WF': 'Wallis and Futuna',
  240.     'WS': 'Samoa',
  241.     'YE': 'Yemen',
  242.     'YT': 'Mayotte',
  243.     'ZA': 'South Africa',
  244.     'ZM': 'Zambia',
  245.     'ZW': 'Zimbabwe'
  246.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement