import numpy as np
n = 5matrix = np.zeros((n,n))
for i in range(n):for j in range(i, n):matrix[i][j] = 1
print(matrix)
import numpy as np
n = 5
matrix = np.zeros((n,n))
for i in range(n):
for j in range(i, n):
matrix[i][j] = 1
print(matrix)