What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-22 05:45:14
os.execl(sys.executable, sys.executable, *sys.argv)
import os import sys restart = input("\nDo you want to restart the program? [y/n] > ") if restart == "y": os.execl(sys.executable, os.path.abspath(__file__), *sys.argv) else: print("\nThe program will be closed...&qu... Add solution
Best helpers
Ranking is empty