I am trying to create a 4x4 array looking something like this:This is a javascript code that I'm trying to create into python
[0, 1, 2, 3]
[4, 5, 6, 7]
[8, 9, 10, 11]
[12, 13, 14, 15]
height = 4
width = 4
num = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
for i in range(0, height * width, 4):
row = []
for j in range(i, i + width, 1):
row.append(num[j])
print(row)