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

1399 points
521c8d1780ff33fc8400127b_599939997
Submitted by
galakti0n
almost 4 years ago

My answers is: 1."servers" 2. "PUT" 3. "400" It's not working. Why?

!Oops, try again! Make sure that you provide all your answers as strings in quotation marks


7 votes

permalink

Use unicode answer1= u"servers"; answer2= u"PUT" and answer3 = u"500" you will pass it :)

666 points
576443c05917ec66d8000587_544772720
Submitted by
Chien Dang
almost 4 years ago

3 Comments

521c8d1780ff33fc8400127b_599939997 galakti0n almost 4 years ago

thanks, I pass it :)

50e085238839d4b89800745c_731649172 Jacques Le Lezard almost 4 years ago

Waaaa thanks! (I didn't thought about unicode!)

576443c05917ec66d8000587_544772720 Chien Dang almost 4 years ago

Ok :)


5 votes

permalink

The last answer is 500, 400 is when the file is unavailable or page not found.
But even this gives the same error.

916 points
Picture
Submitted by
Vineet Chawla
almost 4 years ago


0 votes

permalink

# 1. HTTP is a protocol that connects clients and ______.
answer1 = "servers"

# 2. The four HTTP methods are GET, POST, ___, and DELETE.
answer2 = "PUT"

# 3. A ___ error means the server goofed up. (200, 300, 400, or 500)
answer3 = "500"

212 points
E496244cf0eb7b6bd9d19e9f52615959?s=140&d=retro
Submitted by
bhartirawatbr
over 1 year ago