I am new to python, and I wanted to be able to restart the program from scratch with a code. I don't know what code I am supposed to use for this, but this is what my script looks like, and what I am aiming at. I saw this, but it didn't help since I don't know that much.
name = input("What is your name? ") print("Nice to meet you, " + name) js = input("What is your weight you would like to convert from lbs to kg? ") weight1 = int(js) * 0.453592 weight2 = str(weight1) print("Converted weight: " + weight2) restart = input("Would you like to restart the calculator (y/n)? ") if "y" in restart: # Code to restart program? if "n" in restart: print("Goodbye.") What can I insert in the comment to make this restart from the top?