Make a list


hey guys, a lot of these replies were helpful, however it should output as a 5x5 grid because it is battleship…
this code should output a 5x5 grid of “O”'s and pass the codeacademy check


board = []
for i in range(5):
  board.append(5 * ["O"])
for x in board:
  print x


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