3. Make a list


#1



https://www.codecademy.com/en/courses/python-beginner-en-4XuFm/0/3?curriculum_id=4f89dab3d788890003000096#

The error message reads: "Oops, try again. It looks like you do not have 5 rows in your list."


However my output appears to have 5 rows, as you can see here:
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
['O', 'O', 'O', 'O', 'O']
None

Here's my code:

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

Help me pls


#2

You are just printing board with five rows, but you are not appending. You did multiply in print not in append.
And your append should be in for loop

board.append(["O"] *5)

#3

This is the code that will work -

board = []

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


#4

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