Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started