worldfinder.get_country_statistic ================================= .. py:module:: worldfinder.get_country_statistic Functions --------- .. autoapisummary:: worldfinder.get_country_statistic.get_country_statistic Module Contents --------------- .. py:function:: get_country_statistic(country, statistic) Returns an integer or float representing a specific piece of information about a country. Possible statistics include population, GDP, and surface area. :param country: The name of a country :type country: str :param statistic: The name of the statistic of interest :type statistic: str :returns: * *string* -- The value corresponding to the specified statistic for a specified country. * *Raises* * *-------* * *TypeError* -- If country or statistic are not a string. * *ValueError* -- If country or statistic contain an empty string OR If statistic is not population, gdp, birth rate, cpi, or unemployment rate OR If country is not a valid country .. rubric:: Examples >>> getCountryStatistic("Canada", "population") '36,991,981'