Question: Please write a python program for paper, rock and scissor game. 1) the program will play the game between computer and user 2) computer will

Please write a python program for paper, rock and scissor game.

1) the program will play the game between computer and user

2) computer will randomly generate the action (use 1, 2, 3 to represent different actions)

3) program ask user to input the action

4) program report who win the game based on the rule

Example Output

Please enter your action (1: rock, 2: paper, 3: scissor): 1 You choose ROCK Computer choose ROCK It is a tie!
Please enter your action (1: rock, 2: paper, 3: scissor): 3 You choose SCISSOR Computer choose PAPPER You win!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!