for pet in pets:
print pet
# 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