Ask coding questions
Can you completly restart a script within a python file with a function?
step 1:create a .replit file:
run = "while [ true ]; do python main.py ; done"
step 2:to 'restart', do this:
You could put the script in the function and then at then end of the script call the function.