Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python List remove()

Python Program to remove an element from the list
# list of cars
cars = ['Benz','BMW','Ford','Ferrari','volkswagen']

# remove Ferrari car from the list
cars.remove('Ferrari')

# Updated car list
print("Updated Car list = ",cars)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #List
ADD COMMENT
Topic
Name
2+5 =