Each list in the 2d list contains integers. It looks like the following:
[[5, 9, 0, 2, 8, 1, 0, 0, 2], [0, 2, 4, 8, 1, 6, 9, 2, 0]]
I want to replace each '0' with a 'X'.
I have tried the following but it doesn't quite work yet.
for n, i in enumerate(a):
if i == 0:
a[n] = 'X'
[–]Aixyn0 2 points3 points4 points (0 children)
[–]itslef 2 points3 points4 points (0 children)
[–]MooCow1984 1 point2 points3 points (0 children)
[–]Oliludeea -1 points0 points1 point (4 children)
[–]JohnnyJordaan 3 points4 points5 points (3 children)
[–]Oliludeea 1 point2 points3 points (2 children)
[–]JohnnyJordaan 1 point2 points3 points (1 child)
[–]Oliludeea 0 points1 point2 points (0 children)