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

936 points
4fa288ed986ef0000300ad30_127263530
Submitted by
Manoj Reddy D
over 4 years ago

Doesnt accept any answer

When i give the answer as
answer='JSON'

it responds as follows:

Oops, try again.
Make sure that you provide the answer as a string in quotation marks.


3 votes

permalink

I'm having the same problem with all of the modules that require you to set the variable to a string to answer the question.

870 points
C44a55b48937436d3c1b573c037a5dbe?s=140&d=retro
Submitted by
scriptWhiz99474
over 4 years ago


2 votes

permalink

responding this way seems to solve the issue...

answer = str("answer")

936 points
4fa288ed986ef0000300ad30_127263530
Submitted by
Manoj Reddy D
over 4 years ago

3 Comments

A5f0826cb299aea882ca9426e34422b7?s=140&d=retro byteBlaster70637 over 4 years ago

thanks, it worked for me

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

THANK YOU KIND SOUL!!! YOU ARE MY SALVATION

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.


1 vote

permalink

Same problem here

130 points
A5f0826cb299aea882ca9426e34422b7?s=140&d=retro
Submitted by
byteBlaster70637
over 4 years ago


1 vote

permalink

same :'(

99 points
Picture
Submitted by
Michele Ruini
over 4 years ago

2 Comments

5127dd99371ef68a5d000744_755374373 Alan Carmichael about 4 years ago

droop the str and brackets worked for me

5127dd99371ef68a5d000744_755374373 Alan Carmichael about 4 years ago

drop sorry