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

0 points
over 8 years

10/19 Error is telling me to do exactly what I did.

alt text

Not much else to say here. What’s going on? Why is it saying I didn’t do exactly what I did?

Answer 5604d74a3e0ec8cefa00050a

1 vote

Permalink

Bro u misspelled “Congratulations”.

points
Submitted by Karthik
over 8 years

Answer 55f93654e39efe77e9000281

0 votes

Permalink

Try 2 IF statement. it works for me.

Write your code below!

if guess_row==ship_row: print “Congratulations! You sank my battleship!”

if guess_col==ship_col: print “Congratulations! You sank my battleship!”

points
Submitted by basha21
over 8 years

3 comments

Weird… That passed the lesson for me, but the information doesn’t make sense (and it’s not what the instructions tell us to do). Possible mistake in the lesson? I wonder if others have had this problem. Thanks for the help!

pyrodragon01 over 8 years

what happened was you mispelled “Congratulations”

pyrodragon01 over 8 years

oh, and the two if statements probably wont work later, for other reasons, so change that back.

Answer 5603fc6c86f552a5ea00001c

-1 votes

Permalink

I have the same error.. what to do?

points
Submitted by TanyaSmile
over 8 years

1 comments

I got it to work by splitting it into two “if” statements, as per basha21’s suggestion above. It’s not technically correct (since you want the row and column to both be correct), but it’s what passed it for me.