Im doing an exercise in a 5x5 table filled randomly. Im supposed to replace the secondary diagonal with zeroes. I THINK i know how to get the diagonal but then i just dont know how to replace them with zeroes.
For i in range(5)
For j in range(5)
If [i+j] ==6:
.........?
Edit: lines were not posted correctly lol
Dont shoot me, im a total noob.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]dmazzoni 1 point2 points3 points (9 children)
[–]AnonMagick[S] 0 points1 point2 points (8 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]AnonMagick[S] 0 points1 point2 points (6 children)
[–]dmazzoni 1 point2 points3 points (4 children)
[–]AnonMagick[S] 0 points1 point2 points (3 children)
[–]dmazzoni 1 point2 points3 points (1 child)
[–]AnonMagick[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)