You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
343 B
10 lines
343 B
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))))
|
|
|
|
# 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)))
|
|
|