~doctormo/python-snippets/lp-merge-request-example

1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python
#
# [SNIPPET_NAME: Iterating Numeric Lists]
# [SNIPPET_CATEGORIES: Python Core]
# [SNIPPET_DESCRIPTION: How to iterate a list with numbers inside]
# [SNIPPET_AUTHOR: Jono Bacon <jono@ubuntu.com>]
# [SNIPPET_LICENSE: GPL]

items = [ 1, 2, 3, 4, 5 ]

for i in items:
    print i