Answers for "how to pop an exact number from a list in python"

0

how to pop an exact number from a list in python

a = [0, 2, 3, 2]
a.remove(2)
print(a)
[0, 3, 2]
Posted by: Guest on October-23-2021

Code answers related to "how to pop an exact number from a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language