Question: Please use only python program t o answer. Kindly include code and screenshot of output to help with understanding. 06.2 - Rock Paper Scissors Write
Please use only python program to answer. Kindly include code and screenshot of output to help with understanding.

06.2 - Rock Paper Scissors Write a program that lets the user play a game of Rock, Paper, Scissors against the computer. \$ python rock_paper_scissors_login.py The program should work as follows: Choose rock, paper, or scissors: papper 1. When the program begins, the computer chooses either 'rock', 'paper', or 'scissors' at You made an invalid choice. Please try again. random. (Don't display the computer's choice yet.) This step should be implemented Choose rock, paper, or scissors: rock using a function named get_computer_choice that takes no arguments and returns the computer's choice as a string, either 'rock', 'paper', or 'scissors'. The computer chose paper, and you chose rock. paper beats rock 2. Then the user is asked to make their choice, either 'rock', 'paper', or 'scissors'. If the You lost. Better luck next time. user enters an invalid choice they should be asked to try again until they enter a valid choice. This step should be implemented using a function named get_player_choice Thanks for playing. that takes no arguments and returns the player's valid choice as a string, either 'rock', \$ python rock_paper_scissors_login. py 'paper', or 'scissors': Choose rock, paper, or scissors: paper 3. Once both players have chosen, their choices are displayed. The computer chose rock, and you chose paper. paper beats rock 4. Next a winner is selected according to the following rules: You won the game! - If one player chooses rock and other player chooses scissors, then rock wins (rock Thanks for playing. smashes scissors). $ python rock_paper_scissors_login.py - Ifone player chooses scissors and the other player choose paper, then scissors wins Choose rock, paper, or scissors: SCissors (scissors cut paper). The computer chose scissors, and you chose scissors. - If one player chooses paper and the other play chooses rock, then paper wins (pa- It's a tie. Starting over. per wraps rock). - If both players make the same choice, the game is played again to determine the Choose rock, paper, or scissors: rock winner. The computer chose rock, and you chose rock. This step should be implemented using a function named get_winner that takes the It's a tie. Starting over. computer's choice as its first argument, and the player's choice as its second argument. Both arguments should be strings. The function should return the winner as a string, Choose rock, paper, or scissors: paper either 'computer', "player', or 'tie'. The computer chose scissors, and you chose paper. 5. Finally, the program should display the results of the contest. If it is a tie, the match scissors beats paper should continue until one player wins. You lost. Better luck next time. Test your program at least 3 times and take the screenshot of all the results. Include at Thanks for playing. least one invalid user choice, one rock, one paper, and one scissor in your test. A sample of the output is shown below. Your program should match the formatting of the sample but your results will be different because the computers choices should be generated randomly. User input in the sample has been highlighted in Pappy's Purple to distinguish it from the program's output, but your user input does not need to be colored. Save your program as rock_paper_scissors_login.py, where login is your Purdue login. Then submit it along with a screenshot showing all 4 test conditions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
