micropython/tests/basics/iter_of_iter.py

9 lines
174 B
Python
Raw Normal View History

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))
i = iter(iter({1, 2, 3}))
print(sorted(i))