I have a list:
[2, 5, True, 1, 0, 4, False, False, True]
How do I make 1 and 0 show up as 1 and 0 as opposed to True and False? I'm trying to do:
[True if X == True else False for X in list]
Desired result is:
[False, False, True, False, False, False, False, False, True]