Posts by Jesiel Vieira • 21 points
1 post
-
1
votes3
answers74
viewsA: How to check how many times the number 2 appears inside a matrix?
You can use the library numpy, for example: np.count_nonzero(matriz == 2)
1 post
1
votes3
answers74
viewsYou can use the library numpy, for example: np.count_nonzero(matriz == 2)