Question: An Introduction to Programming, Using Python. By David Schneider Chapter 6 Section 6.2 18.) Rock, Paper, Scissors: Write a program to simulate a game of
An Introduction to Programming, Using Python. By David Schneider
Chapter 6 Section 6.2
18.) Rock, Paper, Scissors: Write a program to simulate a game of Rock, Paper, Scissors between two players and display the outcome. Assume the players randomly make their choices. See Fig. 6.5. (Note: Paper beats Rock (Paper can cover Rock), Scissors beats Paper (Scissors can cut Paper), and Rock beats Scissors (Rock can break Scissors).)
Fig. 6.5 (Possible outcome of Exercise 18):
Player 1: paper Player 2: scissors Player 2 wins.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
