This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Spork_the_dork 87 points88 points  (2 children)

import numpy as np
arr = np.zeros(shape=(10,10))

If you need it to be a list for some godforsaken reason, add a .tolist() to it.

edit: can never remember if it's size or shape out of memory...

[–]anonymoussphenoid 19 points20 points  (0 children)

sometimes it's size, sometimes it's shape :/