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
What aspect of the internet makes it fault-tolerant?
Dvinal [7]

Answer:

The correct answer is mesh design

Explanation:

I just took the quiz

6 0
3 years ago
To include totals and other statistics at the bottom of a datasheet, click the ____ button on the HOME tab to include the Total
Andrej [43]

Answer:

D. Totals

Explanation:

Just like the microsoft excel spreadsheet, the microsoft access datasheet has similar tools. Although it is used to create and query databases, some functions carried out is excel can be done in access as well.

In the status bar at the bottom of the screen, certain parameter can be displayed for easy reference. If the totals or other statistical values needs to be included in the bottom status bar, go to the home tab and click on the "Totals" button.

4 0
3 years ago
Question 8 A data analyst is working with a data frame named stores. It has separate columns for city (city) and state (state).
jeka57 [31]

The programing language, R has a unite unite function in the tidyr package. Hence, the code chunk which let's the analyst create the location column is; <em>unite (stores, "location”, city, state, sep=",") </em>

  • The syntax for the unite function is ; unite(data,col,..., sep)

  • <em>data</em><em> </em><em>=</em><em> </em><em>dataframe</em><em> </em><em>from</em><em> </em><em>which</em><em> </em><em>data</em><em> </em><em>is</em><em> </em><em>to</em><em> </em><em>be</em><em> </em><em>extracted</em><em> </em><em>`</em><em>;</em><em> </em>stores
  • <em>col</em><em> </em><em>=</em><em> </em><em>name</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>new</em><em> </em><em>column</em><em> </em><em>;</em><em>"</em><em> </em>location"
  • <em>.</em><em>.</em><em>.</em><em> </em><em>=</em><em> </em><em>dataframes</em><em> </em><em>to</em><em> </em><em>be</em><em> </em><em>merged</em><em> </em><em>;</em><em> </em>city, state
  • <em>sep</em><em> </em><em>=</em><em> </em><em>seperator</em><em> </em><em>;</em><em> </em>","

Hence, the required syntax goes thus :

  • unite (stores, "location”, city, state, sep=",")

Learn more : brainly.com/question/25534959

3 0
3 years ago
Select all ways that databases may help you manage and manipulate data and records.
MakcuM [25]
Query data
Arrange data in certain order
Update information in more than one place at the same time
Merge data into a word processing document

Calculate loan payment is something you could possibly make a database do, but more likely you would simply use a spreadsheet. Databases are mostly for for storing, retrieving, sorting and manipulating data.
8 0
4 years ago
Which type of drawer has three dispensing modes: single-dose, multi-dose, and matrix?
ad-work [718]

Answer:

CUBIE MiniDrawer Bin

Explanation:

MiniDrawers comes in two configurations, and each fitting comes in one drawerslot. The MiniDrawer (1-6) comes with the most primary pocket dimensions. And we have the 18-tray MiniDrawer (1-8) comes with another dimensions in its basic form. You will in fact find various pocket dimensions like 1,2,3,4,6,12, and these comes within the 18-tray and 6-tray MiniDrawers. And they come in all the dispensing modes mentioned in the question. Hence, the above answer. The answer is clear from the options as well, and since it has the matrix mode as well apart from single dose mode and multi dose mode.

6 0
3 years ago
Other questions:
  • What was the second phone?
    14·1 answer
  • When did Kodak introduce film photography to the commercial market?
    10·2 answers
  • If you want to import text into a DTP application that was first created in a word processing program, what must you do?
    9·2 answers
  • Write a paragraph on the following topic.
    14·1 answer
  • What is the decimal value of 00001111
    14·1 answer
  • In Access, it is possible to have _______________ fields, that is, fields that can contain more than one value.
    9·1 answer
  • You can find synonyms and disciplinary jargon in the ______, _______, and ______ in your search results. You can then use these
    13·1 answer
  • Please write a Java program to read movies.txt file. (It is in Modules under Chapter Code) Create your own movies.ser file from
    14·1 answer
  • - O conhecimento na Educação Física, normalmente passa do senso comum e vai para um conhecimento mais formal, ou seja, do conhec
    7·1 answer
  • Features of Python are *
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!