I'm used to C programming where if you wanted to allocate space 2d array you just declare it as
int a[20][20];
I'm not too used to Python programming yet (I'm still in the C mindstate)
I want to declare a list of lists in this section of code and initalize each element to none.
class World:
def __init__(self):
grid = [[none]*20]*20
For some reason it doesn't look right to me. Can someone help me out?