Possible Duplicate:
How to initialize a two-dimensional array in Python?
I have always written this part of code in this way: every time I need it, I use this python code:
for x in range(8):
a.append([])
for y in range(8):
a[x].append(0)
However, I'd like to know if there's a way to beautify this piece of code. I mean, how do you create a bidimensional matrix in python, and fill it with 0?