Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need this in python thanks 1. Your program will use the following block of code (at the start) to determine the opposing player's move:

i need this in python
thanks image text in transcribed
1. Your program will use the following block of code (at the start) to determine the opposing player's move: import random moves=['R', 'P', 'S') opposing_move=random.choice(moves) This code imports the random module so we can use a randomizing function. It then creates a list of moves and chooses the opposing player's move randomly from that list. 2. The program will welcome the user, explain how the game works, and then ask for the user's move. 3. The program will then compare the player and opponent's moves through a series of if, elif, and else statements to determine whether the player won, lost, or tied. The program must contain at least one of each (at least one if, elif, and else) Other than that, it's up to you how you'd like to set up those conditions. The program should be neat, well-formatted and readable (see the style guide on iLearn for more info). You can lose up to three marks for poor style. Don't forget to make comments in the code that identify the programmer, the program, and the date your program was written

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago