How do i add while loop for the entering value to be only 1 ?
How do i add while loop for the entering value to be only 1 import random choices =["rock","paper","scissors"] player=1 player=1 player3= random.choice(choices) player4=random.choice(choices) if player3==player4: player=input("try your luck by typing 1:") print(player3) player=input("try your luck by typing 1:") print(player4) print("It's a tie!") elif player3=="rock": if player4=="paper": player=input("try your luck by typing 1:") print("player3",player3) player=input("try your luck by typing 1:") print("player4",player4) print("player4 wins!") elif player3=="scissors": if player4=="paper": player=input("try your luck by typing 1:") print("player3",player3) player=input("try your luck by typing 1:") print("player4",player4) print("player3 wins!") elif player3=="scissors": if player4=="rock": player=input("try your luck by typing 1:") print("player3",player3) player=input("try your luck by typing 1:") print("player4",player4) print("player4 wins!")