micropython/tests/basics/enumerate.py

7 lines
173 B
Python
Raw Normal View History

2014-01-14 23:55:01 +00:00
print(list(enumerate([])))
print(list(enumerate([1, 2, 3])))
print(list(enumerate([1, 2, 3], 5)))
print(list(enumerate([1, 2, 3], -5)))
print(list(enumerate(range(1000))))
2014-01-14 23:55:01 +00:00