worldfinder.check_city

Functions

check_city(city, country)

Returns boolean on whether a given city is present in the given country

Module Contents

worldfinder.check_city.check_city(city, country)[source]

Returns boolean on whether a given city is present in the given country

Parameters:
  • city (str) – The name of a city

  • country (str) – The name of a country

Returns:

True if the given city name is a city in the given country

Return type:

boolean

Examples

>>> checkCity("London", "Canada")
True