Answer the question
In order to leave comments, you need to log in
How to replace " with single quote python json here code?
import requests
import json
response = requests.get(" https://api.openweathermap.org/data/2.5/weather?q=... ")
r = response.json()["main"]
print(r)
data = json.loads(r)
print(data['temp'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question