# 'foreach' in python is done using 'for'
for val in array:
print(val)
# Python 3
for item in items:
print(item)
# Don't worry, you are not the only one ;)
# Python doesn't have a foreach statement per se.
# It has for loops built into the language.
# As a side note the for element in iterable syntax comes from
# the ABC programming language, one of Python's influences
for i in range(0,10):
print(i)