Printing Pretty


Battleship #6 Printing Pretty

I receive an error message -
Oops, try again. It looks like you function didn't print out the correct response!

board = []

for i in range (5):
    row = (["O"] * 5)
    print " ".join(row)
def print_board(board):
    for i in range (len(board)):
        print board[i]


This line should read,


This line would be where to use the above:

print " ".join(row)


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