How can I do this in python:

```
x = [1,2,3,4,5,6]
for i in x:
    if i == 4:
       -restart the loop from beginning-
    else:
        print i

```

So here it will print till 4 then repeat the loop