Ответ:
lst = [1,3,5,6,4,7,9,4,8,3,4,6]
for i in reversed(range(len(lst)-1)):
if lst[i] in lst[i+1:]:
lst.pop(i)
print(lst)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
lst = [1,3,5,6,4,7,9,4,8,3,4,6]
for i in reversed(range(len(lst)-1)):
if lst[i] in lst[i+1:]:
lst.pop(i)
print(lst)