How can we make a program restart base on the user inputs can anybody tell me how to do it on PYTHON
import sys sys.exit(1)
And to have it restart, you also need to create a .replit file:
.replit
run="while [ true ]; do; python main.py: done"
@Coder100, i got error from the run command:
> while [ true ]; do; python main.py: done sh: 1: Syntax error: ";" unexpected exit status 2
while [ true ] do; python main.py; done @BotologE
while [ true ] do; python main.py; done
And to have it restart, you also need to create a
.replit
file:@Coder100, i got error from the run command:
while [ true ] do; python main.py; done
@BotologE