Error when nothing is wrong


#1



I don't think I'm doing anything wrong. Please look into.

https://www.codecademy.com/courses/python-beginner-en-4XuFm/0/5?curriculum_id=4f89dab3d788890003000096

Oops, try again.
It looks like you function didn't print out the correct response!


I expect it to loop the move me to the next exercise, as the code is correct.


board = [[1,3,4],[2,2,3]]
def print_board(board):
    for row in board:
        print row
print_board(board)


#2

The exercise is expecting your board to be a list of lists containing "O" for Ocean -- what happened to those?


#3

It was never stated in the instructions. I got pass it by using row[1]
which tell me the problem is at your end.


#4

It will be tricky to play Battleship without an ocean. If you can get by without then great.

Did you delete the code from the previous exercises? Exercise 3 is where you first built your ocean.


#5

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