3. Make a List



Oops, try again.
It looks like you do not have 5 rows in your list.

for o in range(0,5):
    board = []
    board.append(["O"] * 5);

I know it's not the right code, i just can't think clearly or straightforward how to write it :frowning:


have also tried this

for o in range(0,5):
    board = []
    board.append(['O', 'O', 'O', 'O', 'O']);


That line should be before the loop.


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