iterate through re rules in python code example
Example 1: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
Example 2: how to use iteration in python
>>> a = ['foo', 'bar', 'baz']
>>> for i in a:
... print(i)
...
foo
bar
baz