3/19 Make a list: Results are ok, but code not accepted


#1

I got my code to print 5 rows of Os, but my error code says, "Oops, try again. It looks like you do not have 5 rows in your list."

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

Here is a link to the screenshot - http://i.imgur.com/kDdWAFv.png?1

Could someone let me know why my code isn't being accepted?


#2

Hi try to put the board.append(o) before the print o so inside the for loops


#3

Thanks wizmarco. Visually the output looks the same, but this code is accepted. Could you tell me why?