Python/List: Difference between revisions
< Python
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
for idx, item in enumerate(items): | for idx, item in enumerate(items): | ||
print(idx, val) | print(idx, val) | ||
</source> | |||
|} | |} | ||
Revision as of 09:36, 5 June 2018
| TODO | Code |
|---|---|
| List with indices. |
for idx, item in enumerate(items):
print(idx, val)
|