This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with Python Forum

View Course » View Exercise

398 points
2a9878f6252a1374a7ec3258ac3bcfeb?s=140&d=retro
Submitted by
1837277_53b6d2cc548c3574db0024d9_del
about 2 years ago

how can I answer 12/20 and what is the answer?

I am really confused


0 votes

permalink

The answer is very similar to the previous problem. We made a variable 'response' to store the get request data (which includes the request, headers and body).

If you just want to print the headers:

print response.headers

401 points
161eea6c05c71a97f4a8d9b0bad920b2?s=140&d=retro
Submitted by
ec05677
about 2 years ago