If I have a 2D list (or list of lists):
[[1,0,1],
[1,1,1],
[0,0,0]]
How can I iterate this list and and convert all values to boolean for example:
[[True,False,True],
[True,True,True],
[False,False,False]]
Using comprehensions instead of for loops would be ideal.
Retaining the old data isn't necessary but it may be simpler to just create a new set.