How do I finish this Rock, Paper, Scissors game in Python?
Question: 
    import random
    
    userscore = 0
    computerscore = 0
    
    print("Welcome to the Rock, Paper, Scissors Game")
    while True:
        print("User Score = ", userscore, " Computer Score = ", computerscore)
        print("Rock, Paper or Scissors?")
    
        userweapon = str(input())
        print("You chose ", userweapon)
    
        computerweapon = random.randint(1,3)
    
        if computerweapon == 1:
            computerweapon = "Rock"
        elif computerweapon == 2:
            computerweapon = "Paper"
        else:
            computerweapon = "Scissors"
    
        print("Computer chose ", computerweapon)
    
        if userweapon == computerweapon:
            print("You chose the same Weapon, it's a draw.")
        elif userweapon == "Rock" and computerweapon == "Paper":
            print("Computer Point.")
            computerscore +=1
        elif userweapon == "Rock" and computerweapon == "Scissors":
            print("User Point.")
            userscore +=1
        elif userweapon == "Paper" and computerweapon == "Rock":
            print("User Point.")
            userscore +=1
        elif userweapon == "Paper" and computerweapon == "Scissors":
            print("Computer Point.")
            computerscore +=1
        elif userweapon == "Scissors" and computerweapon == "Rock":
            print("Computer point.")
            computerscore +=1
        elif userweapon == "Scissors" and computerweapon == "Paper":
            print("User Point.")
    

How do I ask the User to type in how many points they want to pay upto and how
do I use this information to end the game when input() has been reached?

I know this code looks pretty bad, but I'm a beginner, it's the best I can do.
Thanks for reading I will vote for best answer.


Answer: instead of

    
    
    while True:
    

Try this (and this has no error checking of the input):

    
    
    rounds = int(input('How many rounds do you want to play?'))
    for i in range(rounds):
    

