porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.
MIT License
143 stars 44 forks source link

Example does not work #16

Closed tommycarstensen closed 4 years ago

tommycarstensen commented 4 years ago

This example does not work:

country = CountryInfo('SG') print(country.info())

KeyError: 'sg'

porimol commented 4 years ago

Hi @tommycarstensen ,

Right now, you have to pass "Singapore" instead "SG"

For more details, please follow this https://github.com/porimol/countryinfo#info