Answers for "at the end of function how to restart function python"

2

how to restart program in python

import os
import sys
os.execl(sys.executable, sys.executable, *sys.argv)
Posted by: Guest on November-30-2020
1

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
Posted by: Guest on April-28-2021

Code answers related to "at the end of function how to restart function python"

Python Answers by Framework

Browse Popular Code Answers by Language