micropython/tests/basics/iter_of_iter.py

8 lines
162 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(sorted(i))
# set, see set_iter_of_iter.py