Which of the following numbers might this code generate: random.randint(1,9)?

0
10
11
1

Answers

Answer 1

Answer:

1

Explanation:

In Python programming language, the random.randint function is an abbreviation for random integers.

Basically, the random.randint is used for generating or creating a random integer numbers.

The syntax for this code can be written as;

A = random.randint(1,9)

Print ("Random number between 1 and 9 is % s" % (A))

Note, the numbers between 1 and 9 are 1, 2, 3, 4, 5, 6, 7, 8 and 9.

From the answer choices given (0, 1, 10 and 11), the only number that matches the requirement is 1.

Therefore, the number this code random.randint (1,9) might generate is 1.


Related Questions

Android OS "AFTER" Beta.
A. Cupcake
B. Candy
C. Cookie
D. Carmel

Answers

Answer:

Android OS "AFTER" Beta is;

A. Cupcake

Explanation:

The Android Beta mobile operating system was released on November 2007 while on the 23rd of September, 2008, the first commercially available version of the Android, Android 1.0 was released

Android 1.0 and 1.1 were not assigned actual code names and the first Android mobile operating system release to be assigned a code name is the Android 1.5 which was code named Cupcake by the project manager

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.

Select all the correct answers.
Flynn has drafted a research paper using a word processor. Which of the following will help him to enhance the readability of the paper and give it a professional look?

using bulleted or numbered lists
tracking revisions to the draft
presenting data in tables
inserting headers and footers on each page
formatting section headings in a different font type and size than body text
SELECT ALL THAT APPLY WILL GIVE BRAINLIEST

Answers

Answer: Bulleted or numbered lists, presenting data in tables, and the formatting one.

Explanation: I’m taking the test and i’m pretty sure that’s right, lmk if you got a better answer though!

Answer:

A, C, E

or 1, 3, 5

Explanation:

Took the test!

HELP ASAP!!! What portfolio document is most likely to speak of your soft skills?
cover letter
transcript
recommendations
resume

Answers

Answer: resume

Explanation:

Answer:

recommendations was the right answer

Explanation:

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

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

Why is it important to know the skills, experience needed and pay for a potential career choice?

Answers

you want to know what you’re future might look out to be (labor, money, health, spirit)

Is the PS5 a W or L? Would you still play on the PS4 more then the Ps5?

Answers

W but PS4 is my favorite

Answer:

HMMM I dont know because if the ps4 has the horizon game then sure but if nit ps5 because that game looks sick

Explanation:

A structure that organizes data in a list that is commonly 1- dimensional or 2- dimensional
Group of answer choices

Array

Linear Section

Constant

No answer text provided.

Answers

Answer:

  (a)  Array

Explanation:

An array is a data structure that can be used to organize 1- or 2-dimensional data in a list.

Answer:

(a) Array

Explanation:

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

Jason works for a restaurant that serves only organic, local produce. What
trend is this business following?

digital marketing
green business
e commerce
diversity

Answers

Answer:

green buisness

Explanation:

green business because it’s all natural and it’s organic

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

NEED ASAP.


Which multimedia feature can be used to automatically move objects in your slides?
X transition
O animation
O clipart
O innovation

Answers

Animationnnnnnnnnnnnn
Animation or clip art!!

.xls is the file extension for this file type

A. Image File

B. Internet File

C. Spreadsheet File

D. Word Processing File

Answers

Answer:

Spreadsheet File

Explanation:

Most word processing files are doc or docx

Most internet files are htm or html

Most Image files are jpg or png

What should you do first when designing a program?

Answers

Answer: talk about da progrm

Explanation:

Answer:

Step-by step Explanation:

Which word best describes the feeling you have when you are in the learning zone?

A. Comfortable
B. Accomplished
C. Unsure
D. Agitated

Answers

Explanation:

This is probably something like a feedback form

but I feel unsure/comfortable

Answer: Accomplished

Explanation:

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

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 of the following is NOT a peripheral?
Keyboard
USB storage drive
Printer
CPU

Answers

USB is the answer to your question
a CPU is NOT a peripheral device because a computer system cannot work without a CPU.
A peripheral device is used to put information into and get information out of the computer.

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:

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.

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:

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

Identifying Responses and Replies
Use the drop-down menus to complete the sentences about message response options in Outlook.
v sends your response to everyone who received the initial email.
v creates a new message that includes the initial message to a new recipient.
v sends your response to only the sender of the initial message.

Answers

Answer:

Identifying Responses and Replies by using the drop-down menus to complete the sentences about message response is written below in detail.

Explanation:

A situation like this may be:

Someone receives a bike. They travel it and all, and then all of an unexpected they fall and get injured

If you only understood the first section of how the person received a bike when you draft a response, you would only draft about that piece, but getting harm after receiving the bike is also a huge portion of the "story". You could draft like how you were so pleased when you received your first bike, but you wouldn't remember to address the time you got injured when you were riding down a hill or something.

Answer:

Reply All

Forward

Reply

Explanation:

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

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.

Menu options are usually selected by _____the mouse.

Answers

Answer:

clicking

Explanation:

right clicking the mouse

An eReader has a 956-pixel x 1290-pixel grayscale display with each pixel able to display 32 shades of gray. What is the KiB size of the display memory for the device

Answers

Answer:

752.71 kilobytes

Explanation:

Given ;

956-pixel x 1290-pixel

Shades of gray, = 32

Bit depth (n) = 2^n

32 = 2^5

Bit depth, n = 5 bits / pixel

The size of display memory :

Pixel dimension * n

(956 Pixel * 1290 pixel) * 5 bits /pixel

= 6166200 pixel * bits / pixel

= 6166200 bits

Converting bits to kilobytes :

1 bit = 1/8 bytes

1 byte = 1/1024 kilobytes

Hence,

1 bit = 1/(8 * 1024) kilobytes

1 bit = 1/8192 kilobytes

6166200 bits = (1/8192 * 6166200) kilobytes

= 752.7099609375 kilobytes

= 752.71 kilobytes

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.

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

Other Questions
Supervisor: "Our goal is to make add-on sales during 85% of sales. If you make 35sales, how many add-on sales do you need to make to meet the goal?"Our goal is to make ad on sales during 85% of sales if you make 35% sales how many add-on on sales do you need to make to meet the goal? When it rains and you feel sorrow, when you only see grey skies. There is one beam of light, a light of which you were chosen to follow, one that requires you to count your blessings and remember that there is still more to life. With this quote, what was the reason that the author wrote it? i need clarification What are the DNA strands called?What is the RNA stand called? Students wash cars to raise funds for class trips. The class made a profit of $326.60 from last Saturdays car wash, which was 92% of its revenue. How much was the revenue(commission) for the car wash? (plsssssss answer someone) 3. Which is an example of genetic biodiversity?a. Different skin color within a speciesb. Different types of species in an ecosystemC. Every organism has the same genetic sequenced. All populations look identical within a species Jason keeps track of the money he earns and spends in the table below. A positive numbermeans money earned. A negative number means money spent. Which list shows theamounts in dollars ordered from least to greatest? Jerry started doing sit-ups every day. The first day he did 18 sit-ups. Every day after that he did 4 more sit-ups than he had done the previous day. Today Jerry did 26 sit-ups. Enter an equation that could be solved to find the number of days Jerry has been doing sit-ups, not counting the first day.The equation ___d + ___ = ___ can help find the number of days Jerry has been doing sit-ups. Why did the United States refuse to recognize colonial claims made on anartica by other countries A car costsA car costs $30,000 when purchased as new and depreciates at a rate of 18% per year.Write an exponential decay model to represent the situation. Be sure to define the variables. Find the value of the car after 10 years Read the excerpt from "How I Learned English.Someone said "shin again,There was a wild stamping of hands on the ground,A kicking of feet, and the fitOf laughter overtook me too,And that was important, as importantAs Joe Barone asking me how I wasThrough his tears, picking me upAnd dusting me off with hands like swatters,And though my head felt heavy,I played on till duskThis excerpt shows that the speaker no longer feels like an outsider becausehe enjoys a funny moment with the other boys.he becomes a better baseball player.he learns how to correctly use English words.he allows the other boys to make fun of him.PLZ HELP Distribute -5(m-2)Help the blank often commissioned works of art, claiming to be in the name of religion How to graph -2,-2does it just go vertical or horizontal? What is the last digit of 777^777? Which of the following is equivalent to 3(y1+2y)? (4x3)(3x+6) how can i find the terms Which expression is equivalent to 4.0053.12? Help-my tiny brain cant figure this out How does the poem "Make A Fist", use of alliteration(including consonance and assonance) impact the meaning of the text?