Files
corso-python/lab22.py
T

13 lines
236 B
Python
Raw Normal View History

2026-04-08 15:42:46 +02:00
my_list = [1, 2, 4, 4, 1, 4, 2, 6, 2, 9]
unique_list = []
for number in my_list:
if number not in unique_list:
unique_list.append(number)
my_list = unique_list
print("The list with unique elements only:")
print(my_list)