"Looks like you dont have 5 rows." YES I DO!


#1

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

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

It has printed all 5 rows so I don't know what I might have done wrong this time. PS: I used capital "O" not 0 or small "o".

board = []
for i in range(0,5):
    print ["o"] * 5

#2

Yes, you do, just not the way the lesson wants. It is a building block to the following steps, so it wants you to append the rows to board, then print the board.


#3

Thank you when I used append it worked. But there is always more than 1 way to kill a rat, I think this should be considered.


#4

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