2017-02-14 21:57:56 +00:00
|
|
|
try:
|
|
|
|
enumerate
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 18:03:01 +01:00
|
|
|
raise SystemExit
|
2017-02-14 21:57:56 +00:00
|
|
|
|
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)))
|
2016-02-12 23:38:30 +00:00
|
|
|
print(list(enumerate(range(100))))
|
2014-01-14 23:55:01 +00:00
|
|
|
|
2014-05-06 17:38:54 +01:00
|
|
|
# specifying args with keywords
|
|
|
|
print(list(enumerate([1, 2, 3], start=1)))
|
|
|
|
print(list(enumerate(iterable=[1, 2, 3])))
|
|
|
|
print(list(enumerate(iterable=[1, 2, 3], start=1)))
|