class Solution:
def setZeroes(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
row = []
col = []
for indexr, r in enumerate(matrix):
for indexc, c in enumerate(r):
if c == 0:
if indexr not in row:
row.append(indexr)
if indexc not in col:
col.append(indexc)
for r in row:
matrix[r] = [0] * len(matrix[0])
for c in col:
for r in range(len(matrix)):
matrix[r][c] = 0