79405793

Date: 2025-02-01 22:41:26
Score: 1
Natty:
Report link

pairwise() from the itertools module was added in Python 3.10:

from itertools import pairwise

for a, b in pairwise(["a", "b", "c"]):
    print(a, b)

# Ouput:
# a b
# b c
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jordi Calafat