Question: def fetch _ data ( url ) : response = requests.get ( url ) if response.status _ code = = 2 0 0 : return

def fetch_data(url):
response = requests.get(url)
if response.status_code ==200:
return response.json
else:
print('naah')
what is the type of response.json?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!