Source Code:
(back to article)
# Entfernen eines bestimmten Elements aus einer Liste my_list = [1, 2, 3, 4, 5, 2] my_list.remove(2) print(my_list) # [1, 3, 4, 5, 2]
Result:
Report an issue