Как удалить несколько элементов из списка в Python - How to remove multiple items from a list in Python 3
deleted = [1, 4, 8, 12]
guru_list = [1, 2, 3, 4, 5, 8, 6, 7, 8, 9, 4, 10]
for rm in deleted:
for data in range(len(guru_list)):
if rm in guru_list:
guru_list.remove(rm)
print("lst", guru_list)
2 вариант
guru_list = [10, 20, 34, 12, 23, 10, 15, 11, 1]
for x
in reversed(guru_list):
if x <= 12:
guru_list.
remove(x)
print(guru_list)
Возврат к списку