Battleship! - Check it Twice


#1




This doesn't look right, it says its good but I don't think it is...please help someone


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


#2

In what way does it look wrong to you?

It's really difficult to fix wrongness. Gotta establish what that is first.


#3

why doesn't this look right according to you?


#4

OOOOO
OOOOO
OOOOO
...
Shouldn't i look more like that?


#5

that is what we want to show to the user. How data is stored and how it represented to user are different things. Currently you implemented how the data is stored, in the next exercise you will learn how to display this output nicely to the user


#6

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