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

How to use APIs with Python Forum

View Course

782 points
Picture
Submitted by
van
about 4 years ago

No out put to result screen

Hi, Although the code which I was instructed to type was approved by SAVE & SUBMIT CODE, there were no output to the result screen for the response.

import Request
response = Request.get("http://placekitten.com/")

print response.headers


0 votes

permalink

Check my code.

import requests

kittens=requests.get('http://placekitten.com')


print kittens.text[559:1000]

1582 points
556d33ab937676099b000222_360659495
Submitted by
buu thong tran
over 3 years ago