0

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!")

9th May 2021, 1:08 PM
Gaurav Pantha
Gaurav Pantha - avatar
1 Odpowiedź
+ 1
Your code is truncated because it's too big to fit in thread Description. Save the code in SoloLearn and share the link instead, it won't be truncated. https://www.sololearn.com/post/75089/?ref=app
9th May 2021, 4:21 PM
Ipang