how to create a loop in python turtle

for i in range(10):
    print(i)

Here is what the above code is Doing:
1. We create a variable called i and set it to 0.
2. We check if i is less than 10.
3. If it is, we print i and then increment i by 1.
4. We repeat this process until i is no longer less than 10.