Код: Выделить всё
sites = [['a','b','c'], ['d','e','f'], [1,2,3]]
for site in sites:
sites.remove(site)
print(sites)
Код: Выделить всё
[['d', 'e', 'f']]
Подробнее здесь: https://stackoverflow.com/questions/721 ... ght-expect
Код: Выделить всё
sites = [['a','b','c'], ['d','e','f'], [1,2,3]]
for site in sites:
sites.remove(site)
print(sites)
Код: Выделить всё
[['d', 'e', 'f']]