Skip to content

Instantly share code, notes, and snippets.

View denolayanbule's full-sized avatar

denolayanbule

View GitHub Profile
import requests
#Allows us to take the city name from the user
city = input('Which city would you like to know the weather for ?: ')
url = "http://api.openweathermap.org/data/2.5/weather?appid=fc121d2e5a701f5309e46aa3e75cb8eb&q=" + city
json_data = requests.get(url).json()