Make a list in the Battleship Game
I get the following error,
"Traceback (most recent call last):
File "python", line 3, in
NameError: name 'x' is not defined
board =  for i in range(x): if x[i] < 6: x[i] = x[i] + 'O' print x What is wrong with this code?