#Matrix 15x15
matrix = [[0 for _ in range(15)] for _ in range(15)]
print(int(len(matrix)/2)#why running with this causes error
# Printing the matrix
for row in matrix:
print(" ".join(map(str, row)))#intrepreter points here for where error occured
print statement causing error in for loop , if it’s commented of removed everything works .for context I was making a QR without qr import IN PYTHON
New contributor
Çhitesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.