import requests
def weather(url):
res=requests.get(url)
if res.status_code==200:
print(res.json())
else:
print("Error")
if __name__=="__main__":
data = weather("http://api.openweathermap.org/data/2.5/weather?q=London&APPID=886deced9905c4f8055b983fe6851775")
print(data)