I have got one problem with Python. I'm trying to repeat a for loop more than once. I have a condition inside the loop, and if the condition is true, the loop should start again. I need the solution only with one for loop. For example:

```
for i in range (10):
    if i==4:
        i=0
    print(i) 

```

Unfortunately this doesn't work.

The output should be: `0 1 2 3 0 1 2 3 0 1 2 3...`