mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
12 lines
215 B
Python
12 lines
215 B
Python
import itertools
|
|
|
|
assert list(itertools.chain.from_iterable(("abc", "def"))) == [
|
|
"a",
|
|
"b",
|
|
"c",
|
|
"d",
|
|
"e",
|
|
"f",
|
|
]
|
|
assert list(itertools.chain("abc", "def")) == ["a", "b", "c", "d", "e", "f"]
|