Unable to print rows



Error message: "It looks like the rows are not represented as lists."

How to print rows ?

for i in range (0,5):


this exercise is not about printing rows? Its about building your game board.

your row:


seems to be a string, it should be a list


Instructions say to use the way they have printed the lists. We have to make a list of rows. How to do that using this method?


the print purely shows how to create a list. You have to append the row to board, not print it


How to do that? This is what it says: "Inside the loop, .append() a list containing 5 "O"s to board, just like in the example above"


what you did:

you appended a string containing 5 "O"'s to board.

string != list. Append a list, not a string


yes. so is this the correct way?

for i in range (0,5):

it gives an error message: it looks like not all of your columns have 5 Os.


from the example:

print ["O"] * 5

will print out ['O', 'O', 'O', 'O', 'O']

does ["O,O,O,O,O"] look at the same to you as ['O', 'O', 'O', 'O', 'O']?


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