Can somebody help me with this program- grid [5*5] but its just getting 1D


#1



board= []
for colmn in range(5):
    colmn = []
    board= board + colmn
    
    for row in range(5):
        x= ["0"]*5
        board=board + x
        print board


#2

If you are referring to this exercise:

Can you try to explain what you are trying to do with board = board + colmn and board = board + x?


#3

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