How did you generate a random number for the user to guess? by using the built-in randint function by using the built-in random function by using the random method from the random module by using the randint method from the random module

Answers

Answer 1

Answer:

by using the randint method from the random module

Explanation:

The randint() method is a method or function in the random python module. It is used to get or return an integer number within a specified range.

To use the method, the module must be imported into the python file with the "import random" statement, then the method is referenced using dot notation and specifying the range of integer numbers.

syntax: random.randint(first_number, last_number)

Note that the last number in the range is inclusive in the selection.

Answer 2

Answer:

A. randint

Explanation:

I got it right on a quiz


Related Questions

Drop a paper of A-4 size and a
piece of wood/plastic about 2-3
inches long, from a height more
than 10 feet. Note the time for both
to hit the ground. Now repeat the
experiment by folding the paper
once, twice, thrice... (as many
time as you can). Why every time
the travel time reduces for paper
and remains the same for
wooden/plastic piece. Does the
paper at any stage hit ground
before wooden/plastic piece? If
yes,

Answers

Folding the paper reduces the surface area/volume. Travel time reduces due to less friction.

The wooden or plastic piece never changes its amount of drag/friction in the atmosphere.

If the paper is folded/compressed small enough, such that it’s friction is less than the wood or plastic then yes it would fall faster.

In a perfect vacuum, there is no friction to factor in, thus both fall at same speed.

What kind of loop should be used in a game where the user is guessing a secret code and the message"guess again" appears until the user guesses correctly?

Answers

Answer:

While loop

Explanation:

It should be noted that the number of times which the computer will ask the user to take a guess is not known.

When we have a condition like this, the while loop (or in some programs; the do-while loop) is to be used.

To further back my point, see the following program in python.

secret_code = 1234

user_guess = int(input("Take a guess: "))

while user_guess != secret_code:

    user_guess = int(input("guess again: "))

print("You guessed right")

The above program will keep asking the user to take a guess until the user enters 1234.

This may or may not be possible with a for loop.

I need to calculate the % of Grand Total on Microsoft Excel, but can't for the life of me remember how to do that. Help would be greatly appreciated.

PS: Reposting my question because the answers I got previously were both only made for points, not to help in any way. :(

Answers

Answer:

You need to first use the Sum function to add up all the costs of September.

Then divide each September cost by the grand total that you got. After that format the last column to be percentages.

Look at the attached file for the formulas used.

Which technology will a business use to figure out who accessed confidential files on a company's computer system

Answers

Answer:

insaj cdsjl ljhwbalfhb

Explanation:

Question # 1 Multiple Select Which of the following shows the assignment of a string to a variable? Select 3 options. answer = "23" answer = (23) answer = '23' answer 23 answer = input("How old are you?") ​

Answers

Answer:

answer = input("How old are you?")

Explanation:

Answer is a variable The Input function takes a string

Answer:

answer = input("How old are you? ")answer = '23'answer = "23"

Explanation: Correct on Edg 2020/2021.

a man takes 30 step to cover 18 metre l,how many step he will needed to cover 3003m distance​

Answers

he will need to take 5,004 steps to cover 3003m distance
3003/18=166.8
166.8 x 30=5004
Answer is 5004

please help me
...
.... ​

Answers

Answer:

formal information searches

Explanation:

Answer:

informal information source

hope it will help if it helps please ask me in comment

What should you do first when designing a program?

Answers

Answer: talk about da progrm

Explanation:

Answer:

Step-by step Explanation:

This is your data.
A= [5, 10, 15]
B = [2, 4, 6]
C = ['dog','cat', 'bird']
You can implement an array of this data with

Answers

Answer:

This is your data.

A =  [5, 10, 15]

B =  [2, 4, 6]

C =  ['dog','cat', 'bird']

You can implement an array of this data with  

either by using lists or by using the array module

ALSO

This is your code.

>>> A = [ 'dog', 'red']

>>> B = [ 'cat', 'blue']

>>> C = [ 'fish', 'green']

You can implement an array of this data by using  

by using lists but not by using the array module

Explanation:

Edge2020

A= [5, 10, 15],  B = [2, 4, 6], C = ['dog','cat', 'bird']. You can implement an array of this data either by using lists or by using the array module.

What is an Array?

An array is a type of data structure used in computer science that holds a set of elements that are all uniquely recognized by at least one array index or key. Each element of an array is recorded such that a mathematical formula may be used to determine its location from its index tuple.

Indexed arrays, multidimensional arrays, and associative arrays are the three types of arrays.

A procedure called indexing selects a subset of values from an array. A value's position inside an array is indicated by its index. The location of the value in an array differs from the value itself.

To read more about Array, refer to - https://brainly.com/question/14375939

#SPJ2

You created a two-dimensional array with the following code.

>>> A = [21, 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> E = [A, B, C]
How do you refer to 'cat'?

E[1, 2)

E[1,2]

E[1][2]

E[1,2]

Answers

Explanation:

My answer is E[1][1]

but I don't see it here

Answer:

E[1][2] that is correct I just took t

Which details in paragraphs 1-5 contrast with your experience and expectations?

Based on these details,what do you think the setting of the story is?

Answers

Answer:

among us

Explanation:

Microsoft word is an example of utility software?

A.true
B.false​

Answers

Answer:

false

Explanation:

Ms word is only an application software

Answer:

Option B. False is the correct answer.

Explanation:

A software that is used to take care of computer and its resources is called utility software while Microsoft word is a dedicated software for documentation and report writing also called application software.

Hence,

Option B. False is the correct answer.

which line of code will allow you to only load the localtime() method into active memory

Answers

Answer:

from time import localtime

Explanation:

have a lovely day :)

The line of code that will allow you to only load the localtime method into active memory is time.

The localtime function is simply known to be time in seconds as long as Epoch is targeted by timer into a broken-down time.

It is mostly written in local time. The function is known to be of timezone and any seasonal time adjustments. Local timezone information is used as though localtime() calls tzset().

LocalTime cannot have a muted date-time object that shows a time, often viewed as hour-minute-second. Time is shown in nanosecond precision.

Learn more from

https://brainly.com/question/19639119

You can raise an object to a height of 2 meters by pulling down a distance of 8 meters on a pulley with a force of 40 N. How heavy an object can you lift with his effort?

Answers

Answer:

160 N

Explanation:

Since, work done by effort = work done by load,

Fd = F'd' where F = effort force = 40 N, d = distance moved by effort = 8 m, F = load and d' = distance moved by load = 2 m.

So, Fd = F'd'

40 N × 8 m = F' × 2 m

320 Nm = 2F m

So, F = 320 Nm/2m

= 160 N

So, the object that can be lifted is an object of 160 N

Which is an email protocol that retrieves email without deleting the email and its attachments from the server?
Simple Mail Transfer Protocol (SMTP)

Internet Message Access Protocol (IMAP)

Post Office Protocol version 3 (POP 3)

Simple Network Management Protocol (SNMP)

Answers

Answer:

Internet Message Access Protocol (IMAP)

Explanation:

The "Internet Message Access Protocol" or IMAP was created by Mark Crispin at the Stanford Knowledge Systems Laboratory. It allows a person to access his email from his local server. In comparison to the Post Office Protocol Version 3 (POP 3), which deletes the emails once they are downloaded, the IMAP allows the contents to be saved on the server. The email will only be deleted if the user intends to do so.

Answer:

It is Pop 3 not IMAP

Explanation:

Correct on edg 2022

In Outlook 2016, the Tell Me function can be accessed by
O pressing F1 on the keyboard.
clicking on the File tab, then the question mark button.
typing a query in the textbox on the ribbon.
typing "help" in the search box in the message pane.

Answers

In Outlook 2016, the Tell Me function can be accessed by

O pressing F1 on the keyboard.

clicking on the File tab, then the question mark button.

typing a query in the textbox on the ribbon.

typing "help" in the search box in the message pane.

Explanation:

I think it should be typing a query in the textbox on the ribbon.

In Outlook 2016, the Tell Me function can be accessed by clicking on the File tab, then the question mark button. The correct option is B.

What is Outlook?

The preferred email client for sending and receiving emails from Microsoft Exchange Server is Microsoft Outlook. Accessibility to contact, email, calendar, and task management tools is also provided by Outlook.

You can send and receive emails, manage your calendar, save the names and phone numbers of your contacts, and keep track of your projects using Outlook.

Even if you utilize Outlook on a daily basis, you might not be aware of all the wonderful things it can do to boost your productivity.

By selecting the File tab, then the question mark button in Outlook 2016, you may open the Tell Me feature.

Thus, the correct option is B.

For more details regarding Microsoft outlook, visit:

https://brainly.com/question/26695071

#SPJ2

Which of the following programming languages were initially developed to teach programming techniques to students? Choose all that apply.

Answers

Answer:

BASIC programming language

Pascal programming language

Explanation:

C++ programming language

Java programming language

BASIC programming language

Pascal programming language

Answer:

it's C and D

Explanation:

Do you need a internet browser to go to the intrnet?​

Answers

Answer:

No you do not need a interent browzer to get to the internet.

Explanation:

Not sure but I don’t think so

Suppose you wanted to quickly take a photograph of a dew drop on a rose petal before it rolled off. Which camera mode would be most

appropriate?

A: landscape

B: L

C: macro

D: M

Answers

It would be C

Or search up the difference of those camera modes to see which one is better but I’m going with C

Answer:

The answer is M

Explanation:

EDGE 2022

Here dude this is what I was talking about

Answers

Answer:

go to your email and refresh the page and if it didnt work just email them

Put ur number if I dosent work then send them a email

Which of the following is a palette of colors, fonts and special effects which complement one another?
O Placeholders
O Theme
O Background
Slide Masters

Answers

Answer:

Theme

Explanation:

Using this feature keeps the message thread intact.


Reply

Opt out

New message

Signature

Answers

Answer:

Option 1: Reply is the correct answer.

Explanation:

Emails are used for business and official communications.

Let us look at the options one by one

Reply:

The reply option opens the email editing window. When the reply option is used the emails then are arranged in the form of a message thread. So the reply option keeps the message thread intact.

Hence,

Option 1: Reply is the correct answer.

The answer is D!!Readable code includes
o the use of formatting to make the code look better.
the use of dense lines of code without indentation.
o the use of comments that are of no use to future users of the progran

Answers

Answer:

D

Explanation:

says in title

Readable code includes the use of comments that are of no use to future users of the program. The correct option is c.

What are readable codes?

Readable code is just code that makes its goal crystal plain to the reader. The likelihood is that other developers will read the code we write and want to either comprehend it or modify it. It's interesting to read the code. Variable, function, and class names in the code are meaningful.

The code may need to be tested, a bug fixed, or a new feature added. The evolution of the codebase is facilitated by readable source code, which makes it easier to read and comprehend the abstraction phases. Future developers can save time and effort by writing readable code.

Therefore, the correct option is c, the use of comments that are of no use to future users of the program.

To learn more about readable codes, refer to the link:

https://brainly.com/question/19540616

#SPJ2

So my teacher asked us to predict who would win in a death match, and we could choose the two characters, so Alastor from Hazbin Hotel vs Blackhat from villinous, who would win?

Answers

Answer:

I think alastor from Hazbin Hotel.

Answer:

alastor

Explanation:

i mean alastor is a demon and blackhat we dont know if he is a demon or not but i mean alastor would win he took down a flying ship that was trying to kill them

Menu options are usually selected by _____the mouse.

Answers

Answer:

clicking

Explanation:

right clicking the mouse

How do I do this? Can someone please tell me.

Answers

Answer:

Below is a quick example of how to do it.  Note though that the instruction to output "annual rainfall to one decimal place" sounds erroneous to me, as I would expect the numbers to be entered as integers (but perhaps I'm wrong).

In my opinion it would be far more sensible to round the average to a single decimal place instead.

start a running tally at zero

set "aboveTally" to zero (this will be used to count which months are above the average)

for each month{

   prompt for rainfall that month, storing it in an array

   Also add that value to the running tally

}

average = tally / 12

// Output list of month's rainfalls, and get a tally of those above average

for each month{

       print month + ": " + amount input for this month

       if total for month > average: aboveTally++

}

//output total anual to one decimal place:

print "total anual rainfall: " + (int)(tally * 10) / 10

//output number of months above the average:

print "Number of months above averayge: " + aboveTally

When you get a new sim card do it come with a new number or do you have a activate the phone and get a new number in store ?

Answers

put the sim card in the phone and turn the phone on, it technically comes with the card but you really interact with it until you turn the phone on.

Consider the following code: x = 5 x = x * 3 print (x) What is output

Answers

Answer:

Output: 5

Explanation:

It will print 5 on the screen

Use the drop-down menus to complete the steps to open the Lookup Wizard.

1. Open the table in ___
view.

2. Click in the ___
column of the desired field.

3. Click the ___
, and then click Lookup Wizard.

Answers

Answer: 1. design view 2. data type 3. arrow

Explanation:

I just did it :)

In 1-2 Sentences, Explain how you would open a new Word processing Document

Answers

Explanation:

first you open word processing app. then in the home screen you will see start a new document then you start one.

Other Questions
Your factory installed tires have a comfort that 95 inches if the odometer reading reading is 32,000 miles on your car you have tires with a conference have 103 inches how many miles have you actually traveled create a paragraph using a mood of your choice using this scene"The rain fell outside my window, i realized..." Arrange the compounds below in decreasing order of the ionic character of the bonds in them.a. CsFb. OF2c. SrF2d. F2 HELP WITH THIS WORD PROBLEM While riding a train in New York City, you notice there are 125 passengers in the first carriage, 10 more passengers in the second carriage then there are in the first carriage, and 10 more passengers in the third carriage then there are in the second carriage. If this pattern continues, how may passengers are there in the fourth carriage? How did Colonization along the Mississippi River lead to the founding of the United States of America that we know today? Help me with this problem? GIVING BRAINLIEST!! What is the value of the expression ? please answer these two questions. i think they would be easy for some and please make sure they are correct. thats all i ask :( I have to show work helpp :( Can someone pleasee help or explain to me how u do this? I dont really Understand ? what is x given circle Z? please help !! Describe the steps to complete a dihybridcross. What ancient city fought Rome for control of much of North Africa?A.EgyptB.CarthageC.DublinD.Johannesburg Working out Choose a person aged 19 to 25 years at random and ask, "In the past seven days, how many times did you go to an exercise or fitness center or work out?" Call the response Y for short. Based on a large sample survey, here is a probability model for the answer you will get:8Working out Choose a person aged 19 to 25 years at random and ask, "In the past seven days, how many times did you go to an exercise or fitness center or work out?" Call the response Y for short. Based on a large sample survey, here is a probability model for the answer you will get:8 What kind of cell has a nonspontaneous voltage?An electrolytic cellA dry cellA wet cellA voltaic cell Find the sum of the first 9 terms of the following sequence. Round to the nearesthundredth if necessary.4,8,16, ... Kobe, Amari, and DJ raised $125.45 for their football team. Kobe collected $24.55 morethan Amari, and DJ collected $15.60 less than Kobe.If x = the amount raised by Amari, choose the expressions that represent the amounteach other player raised. Simone has a concave utility of wealth function, u(x). She is contemplating two prospects, Y and Z. EV(Z) > EV(Y). Which of the following statements is true? a. Simone will necessarily prefer Z to Y. b. Simones ranking of Y and Z cannot be determined without knowing the distribution of the outcomes that result in EV(Y) and EV(Z). c. Simone will necessarily prefer Y to Z. d. Because EV(Z) > EV(Y), EU(Z) > EU(Y), but that is not sufficient information to determine her preference ranking. Name the first five countries that you think of.(People dont have to answer literally.)Ready..? Go! Write a persuasive INTRODUCTION telling me why middle school should have recess every day.