I'm wondering if I could make something similar to the quit command but instead of ending the script it restarts it from line 1.
Example:
def restart():
#Something that would repeat the whole script.
answer = input("Test")
if answer = "Restart":
restart()