Remove specific items in python list by using remove() function
View All Python Programs Source Code list1 = [“keyboard”, “mouse”, “joystick”] print(“Old List”) print(list1) list1.remove(“mouse”) print(“Updated List”) print(list1) Output Old List [‘keyboard’, ‘mouse’, ‘joystick’] Updated List [‘keyboard’, ‘joystick’] View All Python Programs
Remove specific items in python list by using remove() function Read More »