Question: The language is python 3. Need help with this!! Play the game until the user enters a 0 (15 points) Generate a random number between
Play the game until the user enters a "0" (15 points) Generate a random number between 0 and 2, where O-Rock, 1+Paper, and 2=Scissors. Hint See the randint() function in Module 5.12 - Random Numbers (15 points) Prompt the user for input, where 'R'=Rock, "P":Paper, 'S'=Scissors, and "Q=Quit (15 points) Use multiple if statements to compare the random number (0.1.2) to the user input (RPS) and display the appropriate message (9 conditions, 15 points each). Here are the messages: . If the user does not enter a valid input, display "Invalid Input and prompt for another input. (20 points) (Rock, (Paper, (Scissors or (Quit R Tiel (Rock, (P)aper, (S)cissors or (Quit R You win! Rock smashes scissors (Rock, (P)aper, (Scissors or (Quit R You lose! Paper covers rock (Rock, (Paper, (Sloissors or (Out P (Rock, (Paper, (Scissors or (Qut P You losel Scissors cuts paper (Rock, Paper, (Scissors or (Quts Tiel (Rock, (Paper, (Scissors or (Outs You win! Scissors culs paper (Rock, (Paper, (Scissors or (Out S You losel Rock smashes scissors (Rock, Paper (Scissors or (QUtA Invalid Input (Rock, Paper (Scissors or (Out The program erts Tie! (Rock, (Paper, (Scissors or (Quit P You win! Paper covers rock
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
