79570382

Date: 2025-04-12 11:25:45
Score: 1
Natty:
Report link

Since Python 3.10, it is possible to use pairwise from itertools:

from itertools import islice, pairwise

result = list(islice(pairwise(my_list), 0, None, 2))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: uhrm