Answers for "how to remove all 2 in a list python"

1

how to remove all 2 in a list python

x = [2, 1, 2]
while 2 in x:
  remove(2)
Posted by: Guest on September-16-2021

Code answers related to "how to remove all 2 in a list python"

Python Answers by Framework

Browse Popular Code Answers by Language