Make a list


#1



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


Not sure why, the code looks correct and is printing out correct but keeps giving this error: Oops, try again. It looks like your board contains characters other than "O".


Prints the following:
[['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']]
None


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


#2

Nevermind, resolved. Needed a capital O and not o.


#3

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