Answers for "how to make a 2x2 array in python"

1

python create n*n matrix

# Creates a list containing 5 lists, each of 8 items, all set to 0
w, h = 8, 5;
Matrix = [[0 for x in range(w)] for y in range(h)]
Posted by: Guest on September-28-2020

Code answers related to "how to make a 2x2 array in python"

Python Answers by Framework

Browse Popular Code Answers by Language