def get_city_name(service, city_id, weather_lang): if service == 0: return gismeteo.get_city_name(city_id, weather_lang) if service == 1: return weather_com.get_city_name(city_id, weather_lang) if service == 2: return accuweather.get_city_name(city_id, weather_lang)
def get_city_name(service, city_id): if service == 'Gismeteo': return gismeteo.get_city_name(city_id) if service == 'AccuWeather': return accuweather.get_city_name(city_id) if service == 'OpenWeatherMap': return openweathermap.get_city_name(city_id) if service == 'Yr': return yr.get_city_name(city_id)