Make a list


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

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


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


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