Source Code:
(back to article)
# Removing a specific item from a list my_list = [1, 2, 3, 4, 5, 2] my_list.remove(2) print(my_list) # [1, 3, 4, 5, 2]
Result:
Report an issue