Python module for country codes with ISO codes.
Python module for country codes with ISO codes.
pip install country_module
Create a python script, for example example.py
:
from country_module import country
print('Country code: {}'.format(country.see(country_name='India', option=0)))
print('ISO code: {}'.format(country.see(country_name='India', option=1)))
Save and run:
❯❯❯ py example.py
Country code: +91
ISO code: IN