Answers for "create n x n list 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

Python Answers by Framework

Browse Popular Code Answers by Language