subject

#In the game Rock-Paper-Scissors, two opponents#simultaneously choose to throw either "Rock", "Paper",#or "Scissors". Rock beats Scissors, Scissors beats Paper,#and Paper beats Rock. If both players throw the same#object, the round is a tie.##Write a function called find_winner. find_winner will take#as input a list of 2-tuples, each representing a round of#Rock-Paper-Scissors. Each 2-tuple will contain two strings.#Each string will be either "Rock", "Paper", or "Scissors".#The first item in the 2-tuple will represent what Player 1#chooses in each round, and the second item in the 2-tuple#will represent what Player 2 chooses in each round.##find_winner should return the string "Player 1 wins!" if#Player 1 wins more games than Player 2. It should return the#string "Player 2 wins!" if Player 2 wins more games than#Player 1. It should return the string "It's a tie!" if the#two players win an equal number of times.##The number of times the two players tie is irrelevant to the#result: all that matters is who wins more rounds than the#other.##For example:## find_winner([("Rock", "Rock"), ("Rock", "Scissors"),# ("Paper", "Rock"), ("Scissors", "Rock")])##...would return "Player 1 wins!" because Player 1 wins#two round and Player 2 wins one round.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
You know the right answer?
#In the game Rock-Paper-Scissors, two opponents#simultaneously choose to throw either "Rock", "Paper...
Questions
question
Mathematics, 01.12.2021 18:40
question
Mathematics, 01.12.2021 18:40
question
Mathematics, 01.12.2021 18:40
question
Biology, 01.12.2021 18:40
Questions on the website: 13722367