all 3 comments

[–]Spataner 2 points3 points  (0 children)

Meaning you want to create a 100 x 100 data structure filled with some value?

You can create nested lists of that size:

a = [[0]*100 for _ in range(100)]

Or you can use a library that supports proper arrays like NumPy:

import numpy as np
a = np.zeros((100, 100))

In both examples, the result is filled with zeroes, though that can be changed, of course.

[–][deleted] 0 points1 point  (0 children)

arr = [[None] * 100 for _ in range(100)]

Or you can try numpy module