1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
netineya [11]
3 years ago
10

Rock, Paper, Scissors

Computers and Technology
2 answers:
telo118 [61]3 years ago
7 0

import random

computer_choice = random.choice(['rock', 'paper', 'scissors'])

player_choice = input('Choose rock, paper, or scissors: ')

if player_choice == computer_choice:

   print('Tie. Both players chose '+player_choice)

elif (player_choice == 'rock' and computer_choice == 'scissors') or (player_choice == 'paper' and computer_choice == 'rock') or (player_choice == 'scissors' and computer_choice == 'paper'):

   print('You won! '+player_choice +' beats '+computer_choice)

else:

   print('You lost! '+computer_choice+' beats '+player_choice)

I wrote my code in python 3.8. I hope this helps. Note the elif statement is actually one line of code but it looks like it takes up more than one line.

Musya8 [376]3 years ago
6 0
Jujehehehehehehehehehdhdheh
You might be interested in
Video- sharing sites allow videos to be uploaded in which file format?
ziro4ka [17]

Question

video- sharing sites allow videos to be uploaded in which file format?

the correct answer is .avi?


Yes it is .avi, because the other extension are not video.


8 0
3 years ago
Read 2 more answers
An organization is conducting a study to see if hazardous waste sites pose health risks for cancer or other conditions, such as
denpristay [2]

Answer:

Emergency department information systems

Explanation:

I think this is the answer

8 0
3 years ago
What is the target audience for this poster?
bija089 [108]

Answer:

there is no car on a bus a bus is one long vehicle

Explanation:

7 0
3 years ago
Read 2 more answers
What is the difference between requirements and controls in the security process? Give examples of each.
konstantin123 [22]

Answer:

Security controls are those measures taken to prevent, identify, counteract, and reduce security risks to computer systems, whereas, Security Requirements are guidelines or frameworks that stipulates measures to ensure security control.

Explanation:

Security controls encompass all the proactive measures taken to prevent a breach of the computer system by attackers. Security requirements are those security principles that need to be attained by a system before it can be certified as safe to use.

Security controls are of three types namely, management, operational, and technical controls. Examples of technical controls are firewalls and user authentication systems. A statement like 'The system shall apply load balancing', is a security requirement with an emphasis on availability.

4 0
3 years ago
A meeting of the quality team June is nervous about suggesting ideas because he is not sure he understands why they are qualifie
Flura [38]

Answer: Believe in himself Despite the idea will good or bad

Explanation: We are humans, so he can make a mistake with his ideas, the most important thing for a positive workplace behaviors in the meetings is to show security about your thinking, your ideas also when you are talking, keep in mind that is normal the wrongs and the mistakes, but it is no final you can start again and do it better than the last time, and improve your behavior

3 0
3 years ago
Read 2 more answers
Other questions:
  • PLS HELP!!
    13·1 answer
  • Let's say you want to insert a photo of the Microsoft PowerPoint Ribbon to put into your presentation. Which of these should you
    6·1 answer
  • What can emulate a fully configured PC or server?
    15·1 answer
  • Object Oriented Programming (OOP) allows us to handle complex code in an organized structure and break down the problem by model
    5·1 answer
  • Which feature enables you to make changes to all the slides of your presentation at the same time?
    15·2 answers
  • The Domain Name Service is what translates human-readable domain names into IP addresses that computers and routers understandA.
    11·1 answer
  • Pls answer this
    5·1 answer
  • Can anyone help me with a mental ability work plzz
    12·1 answer
  • How do you refer particular cell?<br>​
    12·1 answer
  • Which of the following identifies the most appropriate courses to take in high school for someone interested in becoming a mecha
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!