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

993 points
Picture
Submitted by
Chad Robinson
over 4 years ago

What am I doing wrong?

I am trying to get pass the quizzes and having no luck. What could I possibly be missing? Tried it with single and double quotes, the answer variable by itself and the answer as a variable d. All failed.

# What are the four commonly used HTTP methods ("verbs")?

# A: FIND, SEND, UPDATE, REMOVE
# B: CREATE, READ, UPDATE, DELETE
# C: GET, SEND, PUT, DELETE
# D: GET, POST, PUT, DELETE

answer='D'

5 votes

permalink

make the answer a unicode answer:

answer = u"D"

597 points
Picture
Submitted by
Kirk Gleason
about 4 years ago

1 Comment

576443c05917ec66d8000587_544772720 Chien Dang about 4 years ago

Amazing, it's work! :-bd, thank you Kirk Gleason :)


0 votes

permalink

Chad,
This may be a POST issue with the site :p
Skip to the next lesson -> Click Run once that passes, try running your answer again.
Hope you find this helpful.

213 points
Picture
Submitted by
Noble Ackerson
over 4 years ago

3 Comments

6ad1befe18e64963f81262a07a6d590c?s=140&d=retro keeprocking over 4 years ago

it didnt help me

6ad1befe18e64963f81262a07a6d590c?s=140&d=retro keeprocking over 4 years ago

even i am facing the same problem with previous section question... some one who is successful please respond

37619b86352460ca9b5b67d3f1ead55e?s=140&d=retro Elijah Lynn about 4 years ago

answer = u"D"


0 votes

permalink

same problem

646 points
7f3de766eb4b4b72ffba00b087178e94?s=140&d=retro
Submitted by
sapientprince
over 4 years ago

1 Comment

37619b86352460ca9b5b67d3f1ead55e?s=140&d=retro Elijah Lynn about 4 years ago

answer = u"D"


0 votes

permalink

use str('D')

414 points
6ad1befe18e64963f81262a07a6d590c?s=140&d=retro
Submitted by
keeprocking
over 4 years ago

9 Comments

Picture Sarah Pohl over 4 years ago

It doesn't make sense, but it works. Thanks!

Cb954c9d48d19016d85a4a1d2ecbb55d?s=140&d=retro Max Li over 4 years ago

Thanks so much!

1e8a1f520c9605deba3965ffdae6e79f?s=140&d=retro Nguessan Hubert over 4 years ago

Thanks you

501c279f28e19000020169ce_91422859 Fletcher Heisler over 4 years ago

It should work as intended now without having to use the str() function. This was an issue caused by a change Codecademy made to support international users.

528401aa548c3509f700253d_319310333 Luke about 4 years ago

using the str() function isn't helping me. Is there a way to bypass this?

C3c2414e15990c514b5d497dab829442?s=140&d=retro Guille about 4 years ago

It's the same that the other quiz. It's a bug that while isn't fixed we can't do anything

576443c05917ec66d8000587_544772720 Chien Dang about 4 years ago

@Guille, you can do next exercises normally, waiting for this fix then.

C3c2414e15990c514b5d497dab829442?s=140&d=retro Guille about 4 years ago

That's what i'm doing man!

37619b86352460ca9b5b67d3f1ead55e?s=140&d=retro Elijah Lynn about 4 years ago

answer = u"D"


0 votes

permalink

It's 'D'!!!!!!!!!

462 points
545ba0e4282ae34dbd003bd6_684009006
Submitted by
Qdigger
over 2 years ago

1 Comment

1dd99145049b67967effe02c00056673?s=140&d=retro pint-sized-programmer over 2 years ago

oh lol.


-1 votes

permalink

It's doesn't work now, please help me solve it, I meet the same problem with topic 1.3, what happen here?! :(

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

1 Comment

37619b86352460ca9b5b67d3f1ead55e?s=140&d=retro Elijah Lynn about 4 years ago

answer = u"D"