circuitpython/tests/basics/iter-of-iter.py

9 lines
170 B
Python

i = iter(iter((1, 2, 3)))
print(list(i))
i = iter(iter([1, 2, 3]))
print(list(i))
i = iter(iter({1:2, 3:4, 5:6}))
print(list(i))
i = iter(iter({1, 2, 3}))
print(list(i))