Is there a way of toggling elements in a python list?

前端 未结 0 407
一个人的身影
一个人的身影 2020-11-21 12:13

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题