Question: Project 0 5 Download the partially completed program, Project 0 5 . py . You can import random similar to import math and use functions

Project 05
Download the partially completed program,
Project05.py. You
can import random similar to import math and use functions in
random. The randint (a,b) function returns a random integer x ,
such that axb. Code a single play of the game, Jan-Ken-
Po. The user will enter their choice of rock, paper or scissors.
The variable compChoice indicates the computer's choice
where 1= rock, 2= paper and 3= scissors.
Display the computer's choice to the user. Then, Display the
outcome of the game for the user.
For example, if the user chose rock and the computer chose 3,
the game should display:
The computer chose scissors.
You won!
Project 0 5 Download the partially completed

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 Programming Questions!