79680834

Date: 2025-06-26 16:13:57
Score: 0.5
Natty:
Report link

The fast, concise, pythonic way to do this is with a list comprehension.

>>> l2
['a', 'b', 'c', 'd']
>>> [i for i in l2 if i != 'a']
['b', 'c', 'd']
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: James Bradbury