To generate integers between and including - 10 to 10 you would use:

randint(-10, 10)

random.random()*20 +
-10

random.randint(-10, 10)

random.random(-10, 10)

Answers

Answer 1

Answer:

random.randint(-10, 10)

Explanation:

random.randint(a, b)

Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1).


Related Questions

PLEASE HELP ASAP!!!
5.3.8 HIGHER/LOWER 2.0 PYTHON
please write the program for me every time I write it it's wrong.
The right code will receive brainliest!!!!

Write a program that makes the user guess a particular float. Now, recall that you should not compare floats to determine if they are exactly equal. In this program, the user wins if their guess is accurate to within 2 decimal places. (Note: The user should be able to enter a number with more than 2 decimal places and the program should check if that value rounded to 2 decimal places matches the number to guess to 2 decimal places.) Because of this, you will have to use round in your comparison of their guess to your number.

If the user’s guess was too high, you should say so. Similarly, you should tell them if their guess was too low.

Here is an example run of your final program, assuming that your float is 3.3312:

PLEASE HELP ASAP!!! 5.3.8 HIGHER/LOWER 2.0 PYTHONplease write the program for me every time I write it

Answers

The program that makes the user guess a particular float based on the question is given below:

The Program

import random

# generate a random float between 0 and 1

target = round(random.uniform(0, 1), 2)

# get user input

guess = float(input("Guess the float: "))

# check if the guess is within 2 decimal places of the target

if round(abs(guess - target), 2) == 0:

   print("Congratulations, you guessed the float!")

else:

   print("Sorry, your guess is not accurate to within 2 decimal places.")

Utilizing the random module, we generate a float that exists in the range from 0 to 1. Following this step, the user is prompted to guess the generated float value via input function and then convert their response into a float using the 'float' function.

Acute precision is of utmost importance when managing floats; therefore, we determine if the inputted value matches the accurate value within 2 decimal places by subtracting these values and utilizing the absolute function afterward. Subsequently, we round this new number with the usage of the rounding function (if it maintains 2 accepted floating points) before ultimately checking if it equals zero. If so, an impressed message is printed, but if not, a dismissive message is displayed.

Read more about programs here:

https://brainly.com/question/23275071

#SPJ1

You are auditing an Agile project. While reviewing the release plan, you find out some of the larger stories exist further down the project's prioritized list of work. What would be your recommendation for the team?

Answers

As an auditor of an Agile project, my recommendation for the team would be to prioritize the larger stories higher up in the project's prioritized list of work. This is important because the larger stories typically require more effort and time to complete, and delaying them until later in the project may cause delays or even derail the entire project.

Additionally, prioritizing the larger stories earlier in the release plan will allow the team to address any potential roadblocks or challenges sooner rather than later, which can help ensure the project stays on track and meets its objectives. Therefore, it is important for the team to review the prioritized list of work and adjust it accordingly to ensure the larger stories are given appropriate attention and consideration.The team should consider factors like dependencies, business value, and risk associated with these stories to determine if they need to be moved higher up the list. By doing this, the team can ensure they are effectively managing the project's scope and delivering the most valuable features within the Agile release plan.

Learn more about recommendation about

https://brainly.com/question/31467789

#SPJ11

use the machine learning algorithms: k-nn and logistic regression to classify multiphase flow patterns, using the database and evaluate the performance.

Answers

Machine learning algorithms such as k-nn and logistic regression can be used to classify multiphase flow patterns.

These algorithms can be trained using a database of labeled data and their performance can be evaluated using various metrics.K-nn algorithm is a type of supervised machine learning algorithm. This algorithm works by modeling the probability of the output variable given the input variables. In the case of multiphase flow patterns, logistic regression can be used to classify the flow patterns into two classes based on their characteristics. For example, the flow patterns can be classified as either stratified or slug flow based on the liquid holdup, interfacial tension, and other relevant parameters.To evaluate the performance of these algorithms, various metrics such as accuracy, precision, recall, and F1 score can be used. These metrics can provide insights into the strengths and weaknesses of the algorithms and help in improving their performance.

Learn more about Machine learning algorithms here:

https://brainly.com/question/23496127

#SPJ11

in a database context, what are homonyms and synonyms and why should they be avoided?

Answers

In a database context, homonyms are words that are spelled the same but have different meanings, while synonyms are words that have the same meaning but are spelled differently. These can cause confusion and lead to inaccurate data retrieval, which is why they should be avoided in a database.

For example, if a database has a field for "State" and another field for "State of mind," these could be considered homonyms because they are spelled the same but have different meanings. Similarly, if a database has a field for "Color" and another field for "Colour," these could be considered synonyms because they have the same meaning but are spelled differently.

To avoid confusion and ensure accurate data retrieval, it is important to use consistent terminology and spelling in a database. This can be achieved by creating a data dictionary or glossary that defines the terms used in the database and provides guidelines for their use.

Learn more about database:

https://brainly.com/question/518894

#SPJ4

In a database context, homonyms are words that are spelled the same but have different meanings, while synonyms are words that have the same meaning but are spelled differently. These can cause confusion and lead to inaccurate data retrieval, which is why they should be avoided in a database.

For example, if a database has a field for "State" and another field for "State of mind," these could be considered homonyms because they are spelled the same but have different meanings. Similarly, if a database has a field for "Color" and another field for "Colour," these could be considered synonyms because they have the same meaning but are spelled differently.

To avoid confusion and ensure accurate data retrieval, it is important to use consistent terminology and spelling in a database. This can be achieved by creating a data dictionary or glossary that defines the terms used in the database and provides guidelines for their use.

Learn more about database:

brainly.com/question/518894

#SPJ11

which function is incorporated into some intel cpus that enables a single cpu to perform as though two cpus are installed? hypertransport 64-bit fsb overclocking hyper-threading

Answers

The function that is incorporated into some intel cpus that enables a single CPU to perform as though two CPUs are installed is called hyper-threading.

Hyper-threading is incorporated into some Intel CPUs and allows for the simultaneous execution of multiple threads within a single CPU. This allows for increased efficiency and performance, as the CPU can handle more tasks at once.

Hyper-threading works by creating virtual cores within the physical cores of the CPU. Each virtual core can execute its own set of instructions simultaneously, allowing for more efficient use of the CPU's resources.

It's important to note that not all CPUs support hyper-threading. Additionally, hyper-threading is not the same as overclocking, which involves manually increasing the CPU's clock speed beyond its rated frequency. Hyper-threading is a feature that can be enabled or disabled in the BIOS settings of compatible CPUs.

For more such questions on Hyper-threading, click on:

https://brainly.com/question/30666691

#SPJ11

why is life so boring and why can´t life just be fair and why is life so short and why do all these bad things happen to good ppl like why do bad things happen period

Answers

Answer:

To be honest i wonder the same thing all the time. I wish i knew the answer to all these questions as well.

Explanation:

marking bad clusters data-hiding technique is more common with ____ file systems.

Answers

Answer:

FAT file systems

what does a CPU use to temporarily store data
a) buffer
b) track
c) sector
d) cylinder​

Answers

Answer:

a) buffer is the right answer

Identify the programming language released by
the Department of Defense in the 1980s.
Pascal
O
Ada
C++
BASIC

Answers

Answer:

the answer is ADA

Explanation:

got it right

ADA 83,  

(Context on ADA)

It was recognized as a powerful, modern programming language that addressed DOD's stated requirements for embedded systems.

the term 'beta version' software generally refers to: group of answer choices software that has not yet been tested in its entirety by the developers software that still requires further integration and unit testing software that is feature complete but still requires end-user testing with real data a completely finished system ready for production

Answers

Beta Version: This is the software that has been made available to the general public but still has many unfinished features.

What is a software beta version?

An incomplete early version of a computer software or application that has the majority of the key elements. For testing and feedback, these versions are occasionally exclusively made available to a small group of people or to the broader public.

A web browser application is what?

A web browser is a piece of software that enables access to the World Wide Web. It is also known as an internet browser or just a browser. With only one click, you have access to all of human knowledge and can look up any question you have.

To know more about 'beta version' software visit:-

https://brainly.com/question/23465069

#SPJ4

After accessing notes in the Navigation bar, what are the steps to creating a new Outlook note?

After accessing notes in the Navigation bar, what are the steps to creating a new Outlook note?

Answers

Answer:

yes, the correctly marked bottom one is correct

Explanation:

What standard tcp port is reserved by iana for the openvpn service to operate on?

Answers

Answer:

1194 is the OpenVPN port reserved by the IANA

Explanation:

what is not an example of a changing operating space?

Answers

What is not an example of a changing operating space? A parking garage. Riley is driving down the highway when the road starts curving to the right.

Parking in garage is not an example of a changing operating space.

What is operating space?

When an operating space is said to be "changing," it usually means that the environment around your car is deteriorating or switching from an open to a closed state.

Operational Spaces are the space(s) inside the Facilities from which the Concessionaire shall have the right, privilege, and obligation to continuously and for the duration of the Term operate its concession in accordance with the terms and conditions of this Agreement.

Distractions while driving, such as texting and using a phone, driving dangerously, such as going too fast or following too closely.

Driving when intoxicated. While drinking and driving is not especially high among novices, it produces a disproportionate number of fatal crashes.

Thus, parking garage is the answer.

For more details regarding operating space, visit:

https://brainly.com/question/9339555

#SPJ6

HELP ASAP!!! Complete the following sentence.
A portfolio helps you organize your abilities and determine your

Answers

Answer:

Strenghts.

Explanation:

A portfolio is a document, which can be both physical and electronic, in which people include their educational and work history, as well as those personal characteristics (character, personality, ability to work in a team, etc.).

Thus, for example, a portfolio may include the person's school and university performance, plus the courses and other training they have taken, plus the places where they work, indicating the positions and tasks they perform there.

Portfolios, then, allow employers to consider all aspects of prospective employees and thus decide who is the best candidate to hire.

A portfolio helps you organize your abilities and determine your GOALS

Now it says this and the airplane mode option is dull

Now it says this and the airplane mode option is dull

Answers

Explanation:

Click the airplane mode again and see if your internet turns back on. if not then click the internet symbol and check to see why its down.

Answer:

can't use internet on airplane mode that's for battery save or no services

Kira would like to implement a security control that can implement access restrictions across all of the SaaS solutions used by her organization. What control would best meet her needs

Answers

The control that Kira would be needing in order to  implement a security control that can implement access restrictions across all of the SaaS solutions used by her organization is the CASB

What is the SaaS solutions?

This is the term that is used to refer to what is called Software as a service. This is the service that allows for the connection of certain cloud based apps over the internet connection.

This service is known to work for the person that subscribes to it following the pay as you go way. It helps in certain services such as the emails, calendars and in certain office tools.

Hence we can conclude that the CASB is the control that Kira would be needing in order to  implement a security control that can implement access restrictions across all of the SaaS solutions used by her organization

Read more on SaaS here: https://brainly.com/question/13615203

#SPJ1

what is the answer of this Q?

what is the answer of this Q?

Answers

Answer:

Because of refraction.

Explanation:

Light coming from fish passes through two medium, one is water and another is air. As the density of medium is changing from high to low, the light bends away from the normal. So to the human eyes, the fish appears to be above its actual position.

Light rays reflected from the fish are refracted at the surface of the water, but the eyes and brain trace the light rays back into the water as thought they had not refracted, but traveled away from the fish in a straight line. This effect creates a "virtual" image of the fish that appears at a shallower depth.

five example of hybrid computer?

Answers

Answer:

gasoline stationelectrocardiogram machine ultrasound machine monitoring machine research and production industries

Explanation:

hope this is useful for u

¿Qué algoritmos de encriptación utilizan una clave para cifrar los datos y una clave diferente para descifrarlos?

Answers

Answer:

Asimétrica

Explanation:

Los algoritmos de encriptación sirven para que solo el destinariario y receptor de los datos logren acceder a la información, es decir que inmediatamente que es enviada la información, solo puede ser legible para quien tenga un código de acceso, al mismo quien envía necesita una clave diferente para enviar lo datos. es un algoritmo asimétrico porqué el emisor y el receptor usan claves diferentes de encriptación.

As part of the communication element, many websites use sophisticated computer programs called ______ which mimic human conversation using artificial intelligence.

Answers

Answer:

ai based learing i think

Explanation:

What data type or you use to represent true or false values?
Int
Boolean
Char
Float

Answers

The Boolean type is used to represent true or false values

Answer:

boolean

Explanation:

5. A Telephone line is

A.a handheld device used to make calls

B.the physical wire connecting the user's telephone apparatus to the telecommunications
network

C.a disk used to store the computer's memory

D.a flash drive​

Answers

Answer:

I would say B because I feel like it's more reasonable

If a driver update creates a problem, you can __________________ the driver update if the previous drivers were working.

Answers

Answer:

rollback the driver update if the previous drivers were working

Imagine you have a friend who does not know much about programming or HTML, but wants to design his own web page. He has decided to use rapid development tools because he has heard that they are good for people who do not have a lot of experience or do not fully understand HTML. He has come to you for advice on the matter, as he knows you have studied the material. What would you tell him about what he can expect from rapid development tools? What questions might you ask him about what kind of website he would like to build so you can steer him in the right direction regarding how intensive his use of these tools should be?

Answers

Answer:

Tell Him to build a website about something HE likes... it will be much more fun that way and he wont be like "Dang I have to work on that project again" If he is a beginner I would say just use plain html dont use javascript or anything like that.

how many people in the world

Answers

Answer:

Around seven billion people

In a Comparative Government course, the first unit focuses on the US Congress and the
second unit focuses on the British Parliament. When reading the textbook before class,
John tries to understand Parliament by relating it to his knowledge of Congress. What
is this an example of?

Elaboration
Retrieval practice
Monitoring
Summarization

Answers

Answer: The answer is Summarization

The method that's used by John is referred to as the retrieval practice.

Retrieval practice refers to a strategy that is used when an individual tries to retrieve a particular information that he or she already learned in order to boost learning.

Retrieval practice is also used to enhance the mind of the person. Since John tries to understand Parliament by relating it to what he already knows about Congress, then this is retrieval practice.

Read related question on:

https://brainly.com/question/21981917

Is MOOC's potentially harmful to copyright? Why or why not ?

Answers

Answer:

Fair-use exceptions to traditional copyright protection face challenges as well, given a MOOC's potential for global reach. Nonetheless, fair use and MOOCs are not mutually exclusive ideas. MOOCs remain an experiment...

The question above pls answer quickly

The question above pls answer quickly

Answers

Answer:

B

Explanation:

I need help pleaseeeee!!!

I need help pleaseeeee!!!

Answers

Answer:

True

Explanation:

Integrated Services Digital Network (ISDN) is a set of communication standards for simultaneous digital transmission of voice, video, data, and other network services over the traditional circuits of the public switched telephone network.

Pleaseee mark me as brainliest

Hope this help <3

What is the best budget electric skateboard under 500$ by your fact or opinion?
I'm giving brainliest to any answer + lots of points!!

Answers

Answer:

I have the Meepo Mini 2s and it is and amazing electric skateboard. The top speed for this skateboard is 28 mph.

It would also help me out a lot if you could solve my question too.

Other Questions
Why is the less massive star in Algol a red giant already, but the more massive star is still on the main sequence 5. Ue the number line to help you decide which tatement i true. 7/8 < 3/47/8=3/4 7/8 >3/4 But no! Whoever submits themselves to Allah and does good will have their reward with their Lord. And there will be no fear for them, nor will they grieve. what does this mean in the quran. I know it but I want to know what is the difference in length between the shortest and longest worm The room temperature BCC single-phase solid solution of carbon in iron is known as:A. Austenite B. Ferrite C. Cementite D. PearliteB ______________ provide both positive and potentially negative information to job candidates. Read The Water Cycle.The water cycle is a natural phenomenon. It has implications for all of the living creatures it affects. Water is drawn up into the atmosphere as it evaporates from the ground, rivers, lakes, oceans, flora. and fauna. This water collects in our atmosphere. Then, it gathers together in concentrations that form clouds. Eventually, the clouds become too dense with water. This causes precipitation to begin and fall back down through our atmosphere. It lands on the Earth's surface as rain or snow. This precipitation then travels through the ground, plants, rivers, lakes and oceans. From there, it evaporates back up into the air to begin the cycle again.Water is restorative in nature. A threat to the natural restorative nature of the water cycle is acid rain. Acid rain is caused by certain gas emissions in our atmosphere. Volcanoes release some of these gases naturally. However, the primary cause of these harmful emissions is human activity and industry. Large factories and gas-powered vehicles send harmful pollutants into the air. As these harmful gases are released into the atmosphere, they are caught in evaporated water molecules, causing acid clouds to form. The gases are also picked up by precipitation that falls from the clouds. The gases mix with the water molecules to form acids, which then fall from the sky as rain or snow. As air pollution continues, acid rain in the water cycle worsens.Acid rain can poison plants and be harmful to animals. It is so strong that it slowly breaks down buildings and stone. The acids break down building materials. They can also burn the leaves of plants. Acid rain can even change the chemical make up of soil, making it toxic to plant life. It can also lower the productivity of farms and crop yields. As rivers and lakes become more acidic, acid rain destroys fish and aquatic life. Ocean creatures with exoskeletons are at risk of acidic waters. The acid weakens and dissolves their exoskeleton. There are many harmful effects on the water cycle caused by acid rain.Which information in the article helps the reader understand the overall text structure? (2 points) aThe author explains how eroding buildings, trees, and other landscapes cause issues in the rain, making it acidic and explains how it affects the water cycle. bThe author explains how pollution contributes to the creation of acid rain and also explains how acid rain can negatively affect waterways, trees, and buildings. cThe author explains how pollution contributes to the creation of acid rain and then explains how this affects the research that scientists do on the environment. dThe author explains how the changing temperature affects precipitation in the water cycle and how this has a positive or negative affect on the farming industries. "What type of a person was Edward Winslow?" 1. In order for a United States oliven to recrive a fair trid, other citizens must - *a) Evaluate judgesb) Vote in electionsC) Pay poll taxesO d) Serve on juries What kind of diet has an effect in the brain that is similar to eating a balanced meal? eating sugary foods once in a while.Eating sugary foods all of the time.Eating only processed foods.Eating about 4 sugar cubes before each meals. In two to three sentences, explain how to build a simple electromagnet. Remember to use proper grammar and mechanics when writing your sentences. If a gold ring has a sale price of $21, what was the original price? There was a sale that was 30% off. i need help The graph shows the movement of a baseball during a play. The baseball moved from point B to point C to point A. Find the total distance that the baseball traveled during the play. Round to the nearest tenth if necessary. One of the highest levels of economic integration is the Economic Union with the EuropeanUnion being an example.a) Critically and concisely discuss the case for regional integration of countries either at thelevel of free trade, customs union, common market, economic union, or political union (5marks).b) Despite the successful economic integration achieved by the European Union, the UnitedKingdom left the EU on the 31st January 2020. Creatively discuss the reasons why theUnited Kingdom left the EU as well as the geopolitical and economical implication of thedecision of the United Kingdom to leave the EU (15 marks).c) Briefly discuss the impact of Russian Ukraine war on the European Union, if any What is the reaction force when baseball catcher catches and stops a baseball? 100 pts just tell me how your day is or simply say hello whichever you prefer how are you today?, i just want to let you know you are doing great! i'm proud of you for still being here today! i know life is life.. but stay strong kings and Queens and anything in between you are loved! you are Very, Beautiful/ Handsome! Do not change for anyone! the tlb access time is tt and the tlb hit ratio is h. what is the ram access time tm such that the effective memory access time is t? How would you describe the common tone of these two quotes: None can gather eternity/Into its heart and bid it stay/Swiftly again it slips away Regrettably, Slocum set sail one last time, in 1909, only to disappear into oblivion forever, lost at sea. solve for x 11 - 13x - 7 - 2x = 7 The volume of a sphere is 36 cubic inches. What is the radius of the sphere?