79196089

Date: 2024-11-16 21:38:39
Score: 1
Natty:
Report link
from itertools import groupby

sorted_list = [1, 1, 2, 3, 3, 3, 6, 6, 8, 10, 100, 180, 180]

unique_list = [key for key, _ in groupby(sorted_list)]

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