# starts at 1 up to, but not including, 5 for i in range(1, 5) print(i)
Here is what the above code is Doing:
1. It creates a variable called i and assigns it the value of 1.
2. It checks whether the value of i is less than 5.
3. If the value of i is less than 5, it prints the value of i and then increments the value of i by 1.
4. If the value of i is not less than 5, it exits the loop.