Make a List!


#1

I've just tried to get over this but I just can't.
Someone help me, please !

This is my code:

board = []

for item in range(5):
    board.append(["O"] * 5)
    return board
    print board

#2

what do you need a return board for? return only works inside a function, you don't have a function? remove the return line

I would change the indent of print board so it prints after the for loop is running?


#3

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