diff --git a/printWeather.py b/printWeather.py index 8d6e3de..2288956 100644 --- a/printWeather.py +++ b/printWeather.py @@ -15,6 +15,11 @@ def __init__(self): WEBSITE = "https://api.techniknews.net/ipgeo/" data = requests.get(WEBSITE) json = data.json() + city = json['city'] + state = json['regionName'] + self.cityInfo = f'{city}, {state}' + + print(f'\n\tWeather for {self.cityInfo}') self.lat = json['lat'] self.lon = json['lon']