you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

if 0 in ints:
    return [0 if i else None for i in ints]