porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example does not work

tommycarstensen opened this issue · comments

This example does not work:

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

KeyError: 'sg'

Hi @tommycarstensen ,

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

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