79633079

Date: 2025-05-22 04:32:02
Score: 1
Natty:
Report link

You can this way too:


my_list = [1, 2, 2, 3, 1, 4, 3]
seen = set()
unique_list = []

for item in my_list:
    if item not in seen:
        unique_list.append(item)
        seen.add(item)

print(unique_list)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shivam Kashyap