how to create a for loop in python 3 code example Example: python for loop range for i in range(0, 3): print(i)