I intend to change the value of boolean array in 2D from True to false, but the code does not work. The output results are the same even I use statement b[r][c] = False. Could someone help me on this, thanks.
import numpy as np
b = np.array([[True for j in range(5)] for i in range(5)])
print(b)
for r in b:
for c in r:
b[r][c] = False
print(b)