I want to reset the code depending on user input like if yes reset the code if no stop it. I know it's a really bad code, sorry about that I am still learning :)
import random
tool = input("Choose your weapon (R)ock (P)aper (S)cissors ")
computer = random.choice(["Rock", "Paper", "Scissors"])
if tool == "R" and computer == "Paper":
    print("You lost aganist ",computer,"!")
elif tool == "R" and computer == "Scissors":
    print("You won aganist! ",computer,"!")
elif tool == "R" and computer == "Rock":
    print("That's a tie!")
elif tool == "P" and computer == "Rock":
    print("You won aganist ",computer,"!")
elif tool == "P" and computer == "Scissors":
    print("You lost aganist ",computer,"!")
elif tool == "P" and computer == "Paper":
    print("That's a tie!")
elif tool == "S" and computer == "Rock":
    print("You lost aganist ",computer,"!")
elif tool == "S" and computer == "Paper":
    print("You won aganist ",computer,"!")
elif tool == "S" and computer == "Scissors":
    print("That's a tie!")
 
    