4. Check it twice


#1

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

this is my code and it got me past 3 but in 4 it says
"Traceback (most recent call last):
File "python", line 2, in
TypeError: 'list' object is not callable"


#2

Did you write it like this? :

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

#3

yeah it had all the exact same indents


#4

Hello, @cmpayant!
I checked your code and, even though what you posted here is not indented, after executing it I got the expected output.
I'd suggest you to check if there's no problem with the indentation and even after doing this the error still shows up, try to refresh the page and execute again.

Best regards,
g4be


#5

wow. simple fix... all I had to do was refresh the page. thanks :slightly_smiling:


#6

No problem, CM! Glad to help!