I\'m new in programming, and am finding a way (if any) to toggle the elements in a list.
I have a list where the elements can be either 1 or 0. I want to toggle them