Bad Aim


#1



https://www.codecademy.com/courses/python-beginner-en-4XuFm/1/3?curriculum_id=4f89dab3d788890003000096#

I keep on getting this error message:
File "python", line 37
guess_col not in range(5):
^
SyntaxError: invalid syntax
but I can't seem to find the syntax error. I believe that everything else is right


if guess_row not in range(5) \
    guess_col not in range(5):
    print "Oops, that's not even in the ocean."
else:
    print "You missed my battleship!"


#2

Remember to include or

if ___ or ___:

#3

I tried that as well and it is giving me a syntax error for "or"


#4

Try putting the or before the continuation operator, or write everything on one line.


#5

that worked! thank you!


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.