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

How to use APIs with Python Forum

View Course

1492 points
56231464b62548dd8200083b_338583113
Submitted by
Ellie Adam
almost 3 years ago

17/20 need help!

I have trouble with 17/20.
I am getting a error message that; need some help.

Oops, try again. Did you create a variable called website?

My code:
from urllib2 import urlopen

Add your code here!
website = urlopen "http://placekitten.com/"
kitten = website.read "http://placekitten.com/"

print kittens[559:1000]


1 vote

permalink

You are missing some ( ) there Ellie.

website = urlopen("http://placekitten.com")
kittens = website.read()

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 2 years ago