# 'foreach' in python is done using 'for' for val in array: print(val)
# Don't worry, you are not the only one ;)
for i in range(0,10): print(i)