To delete element from list by its index  pop in list is used.

Example of List.pop:

for an instance “a” is list as shown below

a=[‘apple’,’orange’,’mango’,’guavava’]

To remove guavava from list we will type its index value in bracket as shown below

a.pop(3)

Output:’guavava’

Now when you print list guavava will have been removed.

how to use list.pop in list
1 Pop in List

By SC

One thought on “List.pop”

Leave a Reply

Your email address will not be published. Required fields are marked *