#3 make a list


#1



I do not understand the error message, can someone tell me what I am doing wrong?


Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: 'builtin_function_or_method' object has no attribute 'getitem'


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


#2

Hi @gr8_bb8 ,

You have ...

board.append["O"] * 5

To pass an argument to a method, within what must the argument be enclosed?


#3

thank you it says i passed but the console shows,

[['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']]

not five rows of O's
should I keep trying?


#4

Yes, and you will get opportunities to do exactly that in the upcoming exercises, especially in Exercise 5: Custom Print.


#5

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