Question: PYTHON program Write a Python script that will play the Paper-Rock-Scissors game. Create a user-defined function named game() that will play the game: Your Python
Write a Python script that will play the "Paper-Rock-Scissors" game. Create a user-defined function named game() that will play the game: Your Python program should generate and store to a variable named computer either "paper", "rock", or "scissors". . The program should ask the user to type in either "paper", "rock", or "scissors" as keyboard input and store it to a variable named player. . The program should use if-statements to output either "Computer wins", "Player wins", or "It was a tie". A main() function should be created that will call the game function. Once the game is over, the program should ask the user if they would like to play again (yeso). The main function should continue looping until the user says "no
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
