79078646

Date: 2024-10-11 14:35:14
Score: 1
Natty:
Report link

The issue is that you're creating a list of lambdas rather than executing them. Try this instead:

L1 = [1, 9, 1, 6, 3, 4, 5, 1, 1, 2, 5, 6, 7, 8, 9, 2]

l2 = []

[l2.append(x) for x in L1 if x not in l2] print(l2)

This will give you the unique numbers in L1.

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Owais Ali