Answers for "how to pop list in python"

0

pop function in python

#pop(call out)
cars=["volvo", "vitz" , "civic"]
cars.pop(2)
Posted by: Guest on January-25-2022
1

list pop method in python

l1 = [1, 8, 7, 2, 21, 15]
l1.pop(2) # removes element at index 2

print(l1)
Posted by: Guest on January-12-2022

Python Answers by Framework

Browse Popular Code Answers by Language