import random
def play() :
user = input("What is ur choice ? 'r' for rock 'p' for paper 's' for scissor")
computer = random.choice(['r', 'p', 's'])
if user == computer :
return "It's a tie"
if is_win(user, computer) :
return "You won!"
return "YOU Lose!"
def is_win(player, opponent) :
if (player == 'r' and opponent == 's') or (player == 'p' and opponent == 'r') or (player == 's' and opponent == 'p') :
return True
After running it my output is not showing its displaying in this way :