When should the while loop be used in Python?
A. When a condition is not necessary for the action to repeat
B. When the range of repetitions includes positive and negative numbers
C. When an action will be repeated for a specific number of repetitions
D. When the exact number of repetitions is unknown

Answers

Answer 1

The while loop is used in Python is When a condition is not necessary for the action to repeat. The correct option is A.

What is a loop in python?

While the test expression (condition) is true, a block of code is iterated over in a while loop in Python. When we are unsure of how many times to iterate, we typically utilize this loop.

When a condition is not satisfied, a "While" loop is used to repeat a certain piece of code an undetermined number of times.

Therefore, the correct option is A. When a condition is not necessary for the action to repeat.

To learn more about loop in python, refer to the link:

https://brainly.com/question/17161155

#SPJ1

Answer 2

Answer: C. When an action will be repeated for a specific number of repetitions

Explanation: In order for a while loop to work, it needs to know how long it is supposed to be repeated.

Example: x = 0

   while x (x<10):

   x = x + 1

So when x is greater than 10, the loop will run, but when x is less than 10 it will not.

While loop definition: tells Python to repeat the action while a certain condition is true

Hope this helps :)

--k7ro


Related Questions

Objectives ** WILL GIVE BRAINIST PLEASE**
Write a scientific report modeling a written research paper on big data applications.



Your Task

Think of an area that interests you: sports, arts, entertainment, international relief efforts, government, careers, or the weather.


Think of a question you would like to answer. Is it better to wait until the battery is low before you recharge your smartphone? How does a streaming service like Netflix or Hulu decide which shows to offer?


Look for a website where someone already collected a large quantity of data to answer that question. While commercial big data sets may have tens of thousands of values, for this project, look for a data set with at least 100 values.


You are not going to write a program to analyze these data because you have not yet covered how to read data files. You can describe how the researcher(s) who collected the data used them to answer your question.

Your Document Requirements
Part 1: Name
Your name
Names of your partner(s) (include the names of your group if this is a group project)
Part 2: Title
Part 3: Question(s) to Answer
A paragraph that introduces your topic and the question(s) to be answered
Part 4: Exposition
Describe the data you found, including a link to the page
Explain the answer to your question(s)
Give credit to your sources, whether using direct quotes or not
Part 5: Conclusion
A paragraph summarizing your analysis
Part 6: Bibliography
Part 7: Partner Participation (only included for those working in groups)
Describe the role and responsibilities of each member of the group

Answers

Answer:

                                                                                                                 (name)

Explanation:                              Title

Question(s)A paragraph that introduces your topic

what maintains data about various types of objects, events, people, and places?

Answers

Database,A data made management system,data element,

There are numerous components that maintain data about various types of objects, events, people, and places. They are known as databases, data management systems, and data elements.

What do you mean by Database?

A database may be defined as a systematic collection of data that is significantly stored and accessed electronically by a user. After storage, it can be retrieved or extracted when the user requires it for their need. It holds a complete set of files, folders, documents, etc. in an organized manner.

Apart from databases, data management systems are the framework system for gathering and interpreting large volumes of data across an organization in a sequential manner. It basically includes software tools for its proper management.

A data element is a fundamental unit of data that has some precise meaning and functional property in order to classify data on the basis of some criteria or characteristics.

Therefore, there are numerous components that maintain data about various types of objects, events, people, and places. They are known as databases, data management systems, and data elements.

To learn more about Databases, refer to the link:

https://brainly.com/question/518894

#SPJ6

Write a program that inputs the length of two pieces of fabric in feet and inches(as whole numbers) and prints the total

Answers

Converting from inches to feet requires a modulo operator.

The modulo operator returns the remainder of a division.

The program in Python, where comments are used to explain each line is as follows:

#This gets the input for feet

feet1 = int(input("Enter the Feet: "))

#This gets the input for inches

inch1 = int(input("Enter the Inches: "))

#This gets another input for feet

feet2 = int(input("Enter the Feet: "))

#This gets another input for inches

inch2 = int(input("Enter the Inches: "))

#This calculates the total inches, using the modulo operator

totalInches = (inch1 + inch2)%12

#This calculates the total feet

totalFeet = feet1 + feet2 + (inch1 + inch2)//12

#This prints the required output

print("Feet: {} Inches: {}".format(totalFeet,totalInches))

At the end of the program, the total feet and total inches are printed.

Read more about similar programs at:

https://brainly.com/question/13570855

how to prevent truncation of data when importing into sas studio

Answers

Answer:

Set the length BEFORE pulling the dataset. You cannot change the length of character variable after it has already been set. Then remove any format that might be attached to it. In fact why not just remove any formats attached to any of your character variables.

Crazy Sentence Program. Create a program that prompts the user for the name of an animal, a color, the name of a vehicle, and the name of a city. Then print a sentence that contains the user input in the following order. Include the additional words in the sample output as part of your output. Example: Assume the user enters the words: tiger, green, motorcycle, and Wildwood. The output would be: The green tiger drove the motorcycle to Wildwood.

Answers

I agree with you ✔✔✔

What is your opinion about Sophia, just a robot or human robot (explain your answer
with merits

Answers

Who’s Sophia and pls give more context
I’m sorry I don’t know who Sofia is

Which type of element is a line break?

Answers

Answer:

<BR> element

Explanation:

1. YOU CAN REVERSE AN UNDO ACTION BY CLICKING REDO. *

True
False

Answers

Answer:

if it's on the keyboard false

Range is an example of a ______________.
PLZ help!!!

Answers

Answer:

Function

Explanation:

In python, they use this word a lot.

The function in Python is an example of just one. Whenever called, the reach function accepts one argument. This range function accepts up to 3 arguments, but at least one must be specified when this is invoked.

It provides a process called range(). It returns a series of numbers that starts at zero and increments by one by default, stopping before the defined set.This function is most commonly used to iterate sequence types (Python range () list, string, and so on) using for and while loops.In the for loop, one of the most common uses of the range () method is to iterate through a series of variables.

Therefore, the final answer is "Function".

Learn more:

brainly.com/question/22291227

You can customize backdrops in Scratch, adding text or freestyle drawings over the initial image

A.
True

B.
False

This is actually game design 20 pts and brainliest!!

Answers

Answer:

A. True

Explanation:

ive done this myself

https://scratch.mit.edu/projects/395142260/

Answer:

true

Explanation:

What approach do you prefer to take when creating presentations for class projects? Would you rather use software or create presentation materials by hand? Explain your answers.

Answers

Answer:

when creating presentations it is easier to follow a software because it is reliable and establishes status. Although a more manual method can be used too. now the rest depends on your skills. If I were to make a presentation I would use a software as it makes my work flow more efficient and easy

Explanation:

use a software is much much better because it can save your time make your works more afficient and easier

Identifica una necesidad que implique la reducción de los efectos perjudiciales relacionados al uso de los recursos energéticos.

Answers

Everything runs on energy. This includes all living things, as well as all the cars, houses, factories, lights, and appliances on which we depend. Every unit of energy we use costs us something, be it money or some other type of resource. So whenever we waste energy, we waste money or resources or both.

This is why we need to care about using energy more efficiently. Probably every one of us wastes energy in some way: by driving vehicles with a low fuel efficiency (getting less than 40 miles per gallon); living in poorly insulated houses; using energy-inefficient lighting and appliances; or leaving lights and computers on or motors running when we are not using them. Also, because our use of energy often has harmful effects on the environment, the more energy we waste, the greater is our ecological footprint.

We should also care about the sources of the energy we use. The use of any energy resource has an environmental impact. But our most widely used energy resources—nonrenewable oil, natural gas, coal, and uranium (which fuels nuclear power plants)—have large harmful environmental impacts. By shifting during the next several decades to greater use of renewable energy from the sun, wind, flowing water, and geothermal energy stored as heat in the earth's crust, we can greatly reduce these harmful environmental impacts.

When we rely more on renewable energy sources, most of which depend on energy from the sun, we are following one of nature's three scientific principles of sustainability that have sustained life on the earth for about 3.5 billion years. Some scientists argue that by following these principles, we will have a better chance of preserving our species, cultures, and economies than we will if we ignore them.

There is a great deal of evidence that certain human activities, in violation of these principles, are degrading the earth's life support system. In these activities, we are wasting huge amounts of energy and relying on environmentally harmful energy resources. The good news is that, by observing the earth's scientific sustainability principles, we can still enjoy many of the benefits of today's affluent societies without wasting so much energy and money, and we can reduce our harmful environmental impacts.

b. 2 and 22
function,
13. To input a decimal you need the
a. float
b. int
C. str
d.
val


Python

Answers

Answer:

i think the answer is c so yea

what is the term used to describe image file that contains multiple small graphics?

Answers

The answer sir should be Sprite

I was correcting my keyboard since the arrows had a qwerty swap, but I looked at the settings and realized I needed to change it, but I deleted the keyboard file and my keyboard stopped working, so I panicked. I'd be dead if my father saw the keyboard. What do i need to reinstall it?,,,

Answers

Answer:

Hi,

Try this link

https://certified.windowserrorhelp.com/automatically-update-device-drivers/?headline=%20Keyboard%20Drivers&logo=keyboard&gclid=CjwKCAjw5c6LBhBdEiwAP9ejG1lZr9EYilcRFp3KfYydybYMNfbWAC9-1cwynalo6vDN9R7D452qORoCC9cQAvD_BwE

Then download the thing.I promise it is secure.

Explanation:

It helps reinstall and install driver updates for windows computers. Based on the way you talked about your keyboard it seems like you have a laptop.  The link above will help you re-install and automatically update your keyboard driver. If you have a Mac or other Apple Computer you didn't delete it because Apple hardware has non-removable Drivers for their laptops. in this case there is probably a 3 party source affecting this, such as, heaven forbid, a virus, a corruption of internal storage, or a short circuit.

which hardware component interprets and carries out

Answers

Answer:

The processor, are also called a CPU(central processing unit) is an electronic component. That interpretes and carried out the basic instruction that operates a computer

Explanation:

I've been stuck on these two basic javascript assignments for an embarrassingly long time. The teacher refuses to help me and the material I've been provided doesn't help me. I just need these two assignments done so I don't fail the class (like I currently am). I appreciate any help you can give

Answers

Answer:

it is 29 0ver 30

Explanation:

i took the quiz

Explain the working principle of computer with suitable diagram.

Answers

Based on the instructions given, a computer receives data through an input unit and sends it back through an output system after it processes the data. ... Once the data is obtained, the central processing unit (CPU) takes over and processes the information it was provided along with the aid of other components.

Direction: Write True on the line if the statement is correct. Write False if the statement is incorrect. 1. All objects are composed of shapes and all other design elements are shapes in some way. 2. The color is the basic tool for combining colors. 3. Red violet and blue green are examples of tertiary colors. 4. The arrangement of furniture on each side of a dominant point is referred to as radial balance. 5. Color is the way one feels or perceives about a surface.​

Answers

ANSWER:

TRUEFALSEFALSETRUETRUE_________________

CARRY ON LEARNING

CAN YOU BRAINLEST ME PLEASE

Answer:

1. False coz colour isnt a shape

2. True

3. True

4. True, I think

5. Can be true

Explanation:

18. WHICH MENU WOULD MOST LIKELY ALLOW YOU TO ADJUST YOUR LINE SPACING? *

EDIT
FILE
F0RMAT
INSERT

Answers

Explanation:

FORMAT

because it is used for the general appearance of the page

Over the past week, every time Larry has started his computer, he has noticed that the time is not correct. Larry didn't consider this a problem because his computer was working properly. However, now Larry has decided that he should investigate why the time is not accurate. What can you tell Larry to check to find out why the clock does not keep the right time?

Answers

Answer + Explanation:

You can tell Larry to set his device's location on 'enabled' at all times. That way, you get the time zone too. For example. if you live in the US, and your Location is not enabled, then the device may think that you are in China, or where the device was last at.



Jeroo Bob has just awoken from a long night's sleep and is hungry for some winsum flowers. He walks out of
his shelter, and looks around for some, determined to find every flower possible, even on the small peninsula
on the southeast corner. He spots several, including one on the peninsula, and as he gathers them on the main
island, he sees that Trapper Jody has placed some barrier nets on the small strip of land between the large
island and the peninsula. "Curses!", Bob mutters to himself, exasperated with the continuous harassment he
gets from Jody in her efforts to catch him with her nets. "I'll just have to use the flowers I already have to
disable the nets.", Bob thinks to himself. "I will not let her keep me from my winsum flowers!!". Of course,
he is not smart enough, and too stubborn and hungry even if he realized that he'll waste more flowers
disabling the net traps than it's worth, but he plows on ahead, bound and determined to get that last flower, no
matter what it takes, and get back home for some breakfast!
Write the program necessary for Bob to accomplish his goal, retrieving all the flowers on the island, even the
one on the peninsula, and return Bob back to his home so he can have breakfast in bed, in the exact same
position as when he awoke.
Watch for opportunities to optimize your code using loops. Your teacher just might give you bonus credit
each time you are able to do that!
Have fun!
BEFORE
AFTER
!
Note: In the second picture, all that is required is that there is a clear path between the main island and the
peninsula. The remaining net could be gone as well, and that is OK.
Use a separate sheet of paper to write your program, so that you have enough room.
11:49 AM
Gogle
JUTUU LAU
Jeroo Lab 11

Answers

Answer:

bro this is long try something easy

Explanation:

im lazy to read

When using a voltmeter the loading effect of the meter is very much considered, where the intended resistance of the voltmeter must be very high. Why do you think it should be this way?​

Answers

Answer:

The loading effect of a dc voltmeter refers to the phenomenon in which a negative error is produced in the voltmeter reading (measured voltage), due to the low internal resistance (i.e., low sensitivity of the voltmeter).

what is the type of software that locks your device until you pay a hacker to gain access again?

Answers

I’m not 100% sure, but I think it is Malware

!! please help!!

What technique is used in this code to repeat the process for each value in the array?

a. pause blocks
b. a repeat loop
c. a for loop
d. an array block​

Answers

Answer:

C: A for loop.

Explanation:

The for loop is used to repeat a section of code known number of times.

Using robots to replace workers in factories is an example of which of the following forms of information processing systems? a. Commercial b. Control c. Scientific d. Industrial​

Answers

Answer:

Industrial Robots

Explanation:

They are considered industrial robots because the word industrial has to do with an industry or a factory.

Also, industrial robots will replace the human workers

Hope this Helps

To free up human power for more difficult jobs, they are easily used to finish boring, repetitive, and physically taxing chores. This means that many low-skilled positions, like those in warehouses and on assembly lines, will be replaced by robots, endangering the employment of many low-skilled humans. Thus, option D is correct.

What using robots to replace workers in factories?

Labour automation is the process of using technology instead of people to carry out particular tasks or jobs. Mechanization is a component of automation, but it also entails expanding it by using technology to further dehumanize work.

An automated conveyor would transport the product being manufactured from one stationary worker to the next until it was fully assembled, replacing the previous approach in which employees transported their pieces to a stationary assembly site.

Therefore, using robots to replace workers in factories is an example of Industrial forms of information processing systems.

Learn more about robots here:

https://brainly.com/question/15561225

#SPJ2

What is the first step in finding a solution to a problem?

1: Choose a solution.
2:Think of options to solve the problem.
3:Try the solution.
4:Turn the problem into a question.

Answers

Answer:

Can i have a points? Tysmm

Answer:

4: Turn the problem into a question

Explanation:

The first step in solving any problem is to properly define what exactly is the problem.

This is easier said than done simply because we can sometimes only see or notice the symptoms of a problem or the results but not the cause of those symptoms/results. The cause is the real problem which may be very elusive or just too complex to define.

So identifying the actual problem is the most important first step to solving it.

Carlos had 194 seeds and 11 flower pots he put the same number of seeds in each flower pot which is the best estimate for the number of seeds in each flower pot

Answers

Answer: in solution.

Explanation:

It is basically 194 divided by 11 since we are evenly grouping 194 seeds into 11 pots. This gives 17.636363…

This means that the best estimate is around that number.

why wont my chromebook stay charging while im using it

Answers

Answer:

Explanation:

Well, it is probly because your chromebook is broken or the carger and/or is it working when you are not using it?

What are some other possible causes of an overheating laptop

Answers

Too much use, air vents are being covered, dust/dirt/other particles clogging the fan making it struggle too cool the laptop down, the internal battery may be low and struggling to function, etc.


I hope this helps you!
Other Questions
The perimeter of a rectangular field is 358 m.If the length of the field is 96 m, what is its width? 12. In the given figure, RS is parallel to PQ, If RS = 3 cm, PQ = 6 cm and ar(TRS) = 15cm, then ar (TPQ) = ? (a) 70 cm (b) 58 cm (c) 60 cm (d) 64 cm PLS HELP ASAP WILL MARK BRAINLEIST If l||m, find the value of y write an essay if you would pick money or love (I picked money do and essay on that ) OMG I NEED HELP RN Simplify.6X2+1521274651 Drinking water is a part of Andy took a bus and then walked from his home to downtown. For the first 1.6 hour, the bus drove at an average speed of (15km)/(h). For the next 0.4 hours, he walked at an average speed of (4.5km)/(h). What was the average speed for the whole journey? I need help please help Give at least one bad experience that you encountered in purchasing a product/products . How did you use your knowledge of consumer rights to protect yourself? Youre having a lot of trouble with your math homework and getting pretty frustrated. A friend texts you saying hes finished the assignment and can give you the answers if you want. What do you do?3 TO 5 SENTENCES I need help on this question ENGLISH EASY QUESTIONS POEM (COMPLETE IT FOR POINTS AND TO BE BRAINIEST) If the sun is bigger than the moon, why does the moon have a greater effect on tides? Which of the following is the characteristic of both weathering and erosion The doctor wanted to study ____ how the patient's health had improved with only the use of natural herbs.A) comprehensiveB) comprehensively Read these supporting details- Mercury is the closest planet to the sun, but it is still 36 Million miles away. Mercury orbits the sun for 88 days. Because Mercury travels around The sun faster than the other planets, it was named after the quick messenger of the Roman gods. Which of the following topic sentences best relates to the supporting details? A. Mercury is known for its nearness to the sun. B. Planets in the solar system have many unique qualities. C. Mythology plays an important role in naming planets. D. There are many miles between every planet and the sun. No links pls Where does cellular respiration occur? (1 point)O chlorophyllO mitochondriaO bacteriaO lungs Why did congress pass the war powers resolution of 1973? Your classroom received 150 books. You are placing them in bins. Each bin holds 20 books. How many bins do you need? Remainder: Quotient: Answer: how many bins do I need. what to do with remainder do l Ignored it or Round the quotient up then explainTHANK U!!!