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