@
ndc85430
I have added the output. Not sure why I am getting single characters instead of the elements in the list
output:
Player1 and Player2 are Scissor Rock
Please select your choice by entering Y or N Y
Player2 is the winner
Player1 and Player2 are Rock Scissor
Please select your choice by entering Y or N y
Player1 is the winner
Player1 and Player2 are Paper Paper
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Paper Paper
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Rock Scissor
Please select your choice by entering Y or N Y
Player1 is the winner
Player1 and Player2 are Rock Paper
Please select your choice by entering Y or N Y
Player2 is the winner
Player1 and Player2 are Scissor Scissor
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Scissor Scissor
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Paper Rock
Please select your choice by entering Y or N Y
Player1 is the winner
Player1 and Player2 are Paper Paper
Please select your choice by entering Y or N
I resolved the issue with all of your's support and idea.
import random
Random1 = ["Rock", "Paper", "Scissor"]
Random2 = ["Rock", "Paper", "Scissor"]
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ",Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
while choice!='N':
if Player1 == "Rock" and Player2 == "Paper":
print("Player2 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
elif Player1 == "Rock" and Player2 == "Scissor":
print("Player1 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
elif Player1 == "Paper" and Player2 == "Rock":
print("Player1 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
elif Player1 == "Scissor" and Player2 == "Rock":
print("Player2 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
elif Player1 == "Paper" and Player2 == "Scissor":
print("Player2 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
elif Player1 == "Scissor" and Player2 == "Paper":
print("Player2 is the winner")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
else:
print("No loser")
Player1 = random.choice(Random1)
Player2 = random.choice(Random2)
print("Player1 and Player2 are ", Player1, Player2)
choice = input("Please select your choice by entering Y or N ")
output:
Player1 and Player2 are Paper Scissor
Please select your choice by entering Y or N Y
Player2 is the winner
Player1 and Player2 are Scissor Scissor
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Paper Paper
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Rock Rock
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Rock Paper
Please select your choice by entering Y or N Y
No loser
Player1 and Player2 are Paper Scissor
Please select your choice by entering Y or N Y
Player2 is the winner