mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
7 lines
123 B
Python
7 lines
123 B
Python
from itertools import zip_longest
|
|
|
|
a = [1, 2, 3]
|
|
b = [2]
|
|
|
|
assert list(zip_longest(a, b)) == [(1, 2), (2, None), (3, None)]
|