![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 29.10.2020 19:10 rappidzbn6356
Create a game of rock paper and scissors in which a player plays either 'Rock', 'Paper' or
'Scissors' and a computer tries to beat the player based on the player's previous moves.
Follow the steps given below:
1. Create a list: ['0', '1', '2'] and store it in the variable called valid_entries, i. e,
valid_entries = ['0', '1', '2'].
2. Create an infinite while loop. Inside the loop, create a variable called user_input to
store the input taken by the player.
3. Use the input() function to take input from a player. Inside the input() function,
write the Enter 0 for ROCK, 1 for PAPER and 2 for SCISSORS: statement to show it
as a message to a player.
4. Write another while loop to check whether the input provided by a player exists in
the valid_entries list or not.
5. If the input provided by a player does not exist in the valid_entries list, then print
Invalid Input! message. In the next line, rewrite the user_input = input("Enter 0 for
ROCK, 1 for PAPER and 2 for SCISSORS: ") statement.
6. Now, outside the inner while loop, convert the user_input value to an integer value
using the int() function.
7. Call the update_scores() function with the user_input as an input to update the
scores of the computer and the player.
8. Call the update_counts() function with the user_input as an input to update the
counts of the inputs provided by the player.
9. Write an if statement to check if the score is 10 for any of the player. If the
comp_score == 10, then print the Computer Won! message and break the loop.
Else if the player_score == 10, then print the You won! message and break the
loop.
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 02:00
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 09:40
In the lab, which of the following displayed a list of all installed services and included a description of the service, the current state, and whether the service started automatically or manually? a. the services manager b. the applications summary c. the recommended services d. list the safe services list
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 17:30
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
You know the right answer?
Create a game of rock paper and scissors in which a player plays either 'Rock', 'Paper' or
'Scissor...
Questions
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.11.2020 23:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 04.11.2020 23:30
![question](/tpl/images/cats/mkx.png)
Arts, 04.11.2020 23:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.11.2020 23:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 04.11.2020 23:30
![question](/tpl/images/cats/mat.png)
Mathematics, 04.11.2020 23:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 04.11.2020 23:30
![question](/tpl/images/cats/mat.png)
Mathematics, 04.11.2020 23:30
![question](/tpl/images/cats/himiya.png)
Chemistry, 04.11.2020 23:30