import random round = 0 pla = 0 dea = 0 while round < 4 : computer = random.randint(1, 3) if computer == 1 : computer = "Rock" elif computer == 2 : computer = "paper" elif computer == 3 : computer = "scissors" user = input("Rock Paper or Sicssors?") if user == computer : print("tie try again") elif (user == "Rock" and computer == "Scissors") or (user == "Scissors" and computer == "Paper") or (user == "Paper" and computer == "Rock"): print("You win") pla = pla +1 else : print("you lose") dea = dea +1 round = round + 1 if round > 2 : break if round == 3 : if pla > dea : print("Your good you defeated the computer") elif dea >pla : print("your bad you lost against a computer") else : print("in the end it was only for a tie")