This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Parvati Inashes
about 11 years

Oops?

What is wrong with my syntax? answer = “C”

Answer 510bed6f681b8b72430005fd

6 votes

Permalink

It worked for me: answer = str(“C”)

points
Submitted by rafa.bench
about 11 years

5 comments

Parvati Inashes about 11 years

Ah, thank you. I guess I need to take a python intro course before trying this lesson.

Lyndsy Simon about 11 years

If you want to add me as a collaborator, I’d be happy to fix it.

Joshua Druce about 11 years

Shouldn’t “C” already be a string? From the interrupter “c” == str(“c”) evaluates to True

Filip about 11 years

Duh, that’s stupid! Thanks a lot for the tip!

xbaboon about 11 years

Especially as the hint tells us to enter it in the format ‘answer = “D”‘ and not str(“D”)

Answer 510d448ec13ac42007006921

2 votes

Permalink

Yeah I think something is broken here with the evaluator. My answer was also only accepted after I placed a string with the correct answer into a string function, i.e. str("string"). Seems pretty redundant to me.

points
Submitted by Jeremy
about 11 years

Answer 510b235de85a452d93001824

1 vote

Permalink

ya i am also getting the same issue….

points
Submitted by keeprocking
about 11 years

Answer 53f819f29c4e9d51040036f4

1 vote

Permalink

try it in lowercase like this

answer = “c”

Answer 5154274c45f2a2269d000b30

0 votes

Permalink

“C” should work (and working for me!)

points
Submitted by Kartik Mistry
about 11 years