python restart current loop code example
Example: how to restart loop python
i=2
while i < n:
if something:
do something
i += 1
else:
do something else
i = 2 #restart the loop
i=2
while i < n:
if something:
do something
i += 1
else:
do something else
i = 2 #restart the loop