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
Leno4ka [110]
3 years ago
6

Randomly choose rock, paper, or scissors for the computer

Computers and Technology
1 answer:
Pepsi [2]3 years ago
8 0

import random

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

user_choice = input("rock, paper, or scissors? ")

if computer_choice == user_choice:

   print("It's a draw!")

elif user_choice == "rock" and computer_choice == "scissors":

   print("You win!")

elif user_choice == "paper" and computer_choice == "rock":

   print("You win!")

elif user_choice == "scissors" and computer_choice == "paper":

   print("You win!")

else:

   print("The computer wins!")

I wrote my code in python 3.8. I hope this helps.

You might be interested in
Can you answer this ?​
beks73 [17]

Answer:

Answer it yourself.

Explanation:

NO.

4 0
3 years ago
Read 2 more answers
How many months have 28 days?
Reika [66]

Answer:

All months of the year have at least 28 days, while February is the only month that is comprised of only 28 days (except for leap years)

5 0
3 years ago
Factors of production are A. inputs into the production process. B. social and political conditions that affect production. C. t
ZanzabumX [31]

Answer:

The right answer is option (A).

Explanation:

There are mostly 4 main factors of production i.e. land, labor, capital, and entrepreneurship. These all can be termed as inputs into the production process.

Hence, the most appropriate answer is option (A).

While the other options are wrong because of the following reasons:

  • Option (B) shows the concept of effect on production by social and political conditions, which is not a factor of production.
  • Option (C) shows the concept of mathematical calculation which is also not the factor of production.
  • Option (D) shows the concept of economic inputs and outputs which play a role in production but it is not one of the factors of production.
5 0
3 years ago
True or False? Any edition or version of Windows can join a domain.
Veseljchak [2.6K]

Answer: TRUE! 100%

If I was helpful i would to be rated brainliest please thank you!

Explanation:

8 0
2 years ago
The AND operator is a disjunction and the OR operator is a conjunction.
qwelly [4]

Answer:

True but it might be false but i think is true

8 0
3 years ago
Other questions:
  • In today's society, unethical actions are: A) Easier than ever to get away with, because the general public and insurers are les
    13·2 answers
  • Consider the following relational schema, where the primary keys are Bold,
    7·1 answer
  • Which access database object is best to use for the basis of a report when specific criteria must be applied to the report?
    12·2 answers
  • Which of the following is not an example of a technological aid?
    11·1 answer
  • GIVING BRAINLIEST Which feature of a database allows a user to locate a specific record using keywords?
    13·2 answers
  • Define an organizational unit in your own words.
    11·1 answer
  • In general, what are reasons that someone would choose to use lossy compression? Write a brief response below including at least
    10·1 answer
  • When I’m design view, Henrietta deleted a previous criterion, added a new column, and filtered patients’ age. Which best describ
    15·1 answer
  • Which of the following numbers is of type
    6·1 answer
  • What are the dominant InfoSec-related credentials used to document knowledge and/or experience?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!