Can anyone please help me with how to use a while loop to ask a user to input positive integers until the user enters 0 and at the
end, print the largest number of all the integers entered.

I can send an example if needed

Answers

Answer 1

In python 3:

def main():

   largest = 0

   while True:

       number = int(input("Enter a number: "))

       if number == 0:

           print(largest)

           return

       elif number > largest:

           largest = number

if __name__ == "__main__":

   main()

I hope this helps!


Related Questions

What type of light or lighting technique did Dennis decide to use

Answers

Answer:

Three point lighting.

Explanation:

The standard format rules for a professional letter should be followed.
True
False

Answers

The answer is, true.

Can someone help me on how to start this essay?

Answers

Answer:

Start off with an interesting introduction (add questions) make it interesting.

You can star by explaining what and innovator means for you why are you an innovator and what type of inovator

Who is responsible for providing the equipment employees need to stay safe on the job (like a hardhat or safety
goggles)?
• the Occupational Safety and Health Administration (OSHA)
O the employer
the labor union
O the employee
MacBook Pro

Answers

Answer:

the employer

Explanation:

Answer:

the employer

Explanation:

Software engineering is not only concerned with issues like system heterogeneity, business and social change, trust, and security, but also with ethical issues affecting the domain. Give some examples of ethical issues that have an impact on this domain

Answers

Answer:

follows are the solution to this question:

Explanation:

Confidentiality:

It always agrees with all of this, even though there is no security arrangement, and the theoretically facilitates the free exchange of information between both the client as well as the worker or understands that perhaps the personal life of a client and then all the concerns and problems we have belongs to them.

Competence:

It didn't distort the skill level in such a specific field or topic, it is the talent or capacity, and being able to be doing something well or be sane enough just to face charges in court.

Intellectual property rights:

It will be mindful of regional intellectual property laws in which the individuals over its mind's constructs are given over a certain amount of time, which typically gives the maker the exclusive right to use his / her development.

The examples of the ethical issued that have an impact on the domain is as follows:

Confidentiality:  When there is no security arrangement, and the theoretically facilitates the free exchange of information between both the client as well as the worker .Competence:  It didn't distort the skill level in such a specific field or topic, it is the talent or capacity. Intellectual property rights: It will be mindful of regional intellectual property laws in which the individuals over its mind's constructs are given over a certain amount of time.

Learn more: brainly.com/question/17429689

3

Select the correct answer

Nancy is working on a spreadsheet in Excel on a Microsoft Windows system. Which statements are true about the software she is using?

OA Microsoft Windows is an example of system utility software.

ОВ. Besides system utilities, the only other type of software is application software.

OC. Spreadsheet software, such as Excel, is an example of application software.

OD. Application software control and interact directly with computer hardware.

Reset

Next

Answers

Answer:

A) Microsoft Windows is an example of system utility software. Spreadsheet software, such as Excel, is an example of application software.

Explanation:

System utility software is designed to analyse, configure, optimise or mantain a device. Eg : Operating Software (Android, IOS) & Microsoft Windows

Application Software is a program or group of programs, designed for some utility work for end users. Eg : Word processor, MS Paint,  & spreadsheet excel etc

Use the drop-down menus to complete the statements about creating a table of contents in Word 2016.

To use the table of contents feature in Word, a user must have already created
in the document.

The Mark Table of Contents Entry option is used for
marking nonheading text for the table of contents.

On the Table of Contents dialog box, the
button can be used to change font styles.

Answers

Answer:

1.headings and subheadings

2.manually

3.options

Answer: 1.Headings and Subheadings

2.Manually

3.Options

Explanation: Just did it on e2020.


You should structure the
first before you search for a relevant picture.

Answers

Answer:

True

Explanation:

Software that directly interacts with users to do specific tasks is known as which type of software?
A. application software
B. booting software
C. distribution software
D. system software

Answers

Answer:

A Application Software

Explanation:

Describing How to Create a Combination Chart
Select the correct navigational path to create a combination chart
Select the chart
Click the Chart Tools
tab
Select the data series from the Chart Area list.
Click the Chart Tools
tab
Click Change Chant Type.
Choose a chart type for the selected data series and click OK.

Answers

Answer:

format and design

Explanation:

i took test

If you needed a job and wanted to find places that were hiring, how could you do that without fast internet access?

Answers

Answer: you cant do it inless you have wifi every where you go i think becuase i try it before thanks

what job titles describes a person with green engery? in career clusters

Answers

Answer:

environmental scientist

Explanation:

who goes to belle place middle and is in 7th grade on hear​

Answers

Answer:

Not me but thx for the free points lol

Explanation:

Where are the motors for the light year one located ???

Answers

Not sure honestly ...

What is better in everybodys opinion. AMD or Intel?

Answers

Answer:

Intel is more for work and such, while AMD is foucsed on gamers. I use AMD because I play many games, but it really depends on what you use your computer for.

Explanation:

it depends Explanation:AMD wins the CPU war overall right now, but depending on your needs, an Intel processor could still be the better choice. If you want the best in overclocking, gaming or software support, or if you want productivity performance without buying a discrete GPU, Team Blue has the advantage. But if you want the best balance of price and performance in the Intel vs AMD lineup, Team Red deserves your money.

1) Write a program that prints the sum of the first ten positive integers, 1+2+...+10
I don’t know how to write the code for python

Answers

total = 0

for i in range(1, 11):

   total += i

print(total)

Is this statement true or false?

A chart generated in Microsoft Excel can be plugged into a presentation authored using PowerPoint.


true

false

Answers

Answer:

true

Explanation:

a chart generated in Microsoft excel can be plugged into a presentation authored used PowerPoint. you can only it from excel (by right-clicking on the chart and select copy)and the paste it is PowerPoint. or you can save it and import it as an image(2)

Answer:

True

Explanation:

I got it right on a quiz on k-12

Please help, Tech class!!

Answers

Answer:

Explanation:

1=A

2=A

3=A

4=True

5=A

6=D

7=D

8=B

9=True

10=C

which are the two alternatives for pasting copied data in a target cell groups

Answers

Answer:

Excel has decided to paste contents into a single cell, rather than keeping data in columns. When copying from a query in SQL that has data in a table, pasting it into Excel would normally split the data into the columns - keeping the table. But Excel has automatically changed and takes out the table, pasting each row into one cell.

Explanation:

The goal of an audio codec is


to make an audio file that sounds good and is as small as possible for use with certain applications.

to make an audio file with the highest amplitude while making sure the decibels are not degraded.

to preserve the original sound quality regardless of conversions that affect sampling rate.

to upload audio files from your computer to your mobile devices.

Answers

Answer:

to preserve the original sound quality regardless of conversions that affect sampling rate.

Explanation:

An audio codec can be defined as a codec that helps to cipher or decipher an audio file. It is a computer application that compact or extend an audio file without hampering with the original sound quality.

The main object of an audio codec is to compress a high-quality audio file into a limited size without distorting the quality of sound.

Therefore, the correct answer is option C.

Answer:

C   to preserve the original sound quality regardless of conversions that affect sampling rate.

Explanation:

IM JUST BUILT DIFFRENT

9
10
1
2
3
4
5
Which is a valid velocity reading for an object?
45 m/s
45 m/s north
O m/s south
0 m/s

Answers

Answer:

Maybe 45 m/s north I think I'm wrong

Answer:45 ms north

Explanation:

Write a while loop that replaces every occurrence of “cat” in the message with “dog” using the indexOf and substring methods.

Given:
public class ChallengeReplace
{
public static void main(String[] args)
{
String message = "I love cats! I have a cat named Coco. My cat's very smart!";

// Write a loop here that replaces every occurrence of "cat"
// in the message with "dog", using indexOf and substring.






}
}

Answers

Answer:

Complete the program using:

int index = message.indexOf("cat");

while(index != -1){

message = message.replace("cat","dog");

index = message.indexOf("cat");

}

System.out.print(message);

}

}

Explanation:

The line gets the index of string "cat"

int index = message.indexOf("cat");

The following operation is repeated until all occurrence of "cat"s has been replaced with dog

while(index != -1){

message = message.replace("cat","dog");

index = message.indexOf("cat");

}

This prints the new string

System.out.print(message);

}

}

The program illustrates the use of loops.

Loops are used to perform repetitive and iterative operations.

The code segment where comments are used to explain each line, is as follows:

//This gets the index of "cat" in the string message

int index = message.indexOf("cat");

//The following loop is repeated, until there is no occurrence of "cat" in the string

while(index != -1){

//This replaces "cat" with "dog"

message = message.replace("cat","dog");

//This gets another index of "cat" in the string message

index = message.indexOf("cat");

}

//This prints the new string

System.out.print(message);

}

}

At the end of the loop, all occurrence of "cat" are replaced with "dog".

Read more about similar programs at:

https://brainly.com/question/20461017

On the Design tab, which group allows you to select a different data set for a chart?
O Data
O Chart Legends
O Type
Chart Styles

Answers

Answer

A.Data

Trust me

Answer:

A. Data

Explanation:

got it right

BRAINLIEST How come when I run out of answers on one Brainly account and I go to the other I'm already out of my daily limit of answers? I'm trying to catch up in my courses, I'll do brainliest if you give me a solution to this, I really need to fix my grades.

Answers

Answer:

You just need to skip by watching a video. Its not that long, be patient its only 30 seconds

Explanation:

Answer:

.

Explanation:

I mean if you don't want to wait for adds you could always ask someone for extra help. I am a sophomore and I have all A's in my subjects but I ask my teachers for help when I need it. You could email anyone for help to. I can also help you if you are a sophomore or below.

20
Select the correct answer.
Part of social health means that you make positive contributions to your community,
ОА.
True
OB
False
Reset
Next

Answers

Answer:

true

Explanation:

because my 8 ball said so

Answer:

True

Explanation:

Alisa Miller claims that today's college graduates:

Answers

Answer:  know less about the world then there counterparts

Explanation:

Answer:

know less about the world then there counterparts

Explanation:

This feature allows you to adjust your view to see the lower or upper part of a document.

A.Command

B.Ribbon

C.Scroll bar

D.Tab

Answers

Answer:

C. scroll bar

Explanation:

Its what you use to scroll up and down on documents to see different parts of it

Kerrri uses a database file many time a day. To increase her productivity, she should___.

A. Put it in her My Music folder
B. Move the file to the system tray
C. Create a toolbar for this file
D. Create a shortcut on the desktop to the file

Answers

Answer:

D

Explanation:

A shortcut will make it easier for her to access the database file

HELP

Through photographs, we can represent concepts and ideas. From the following list of concepts, choose 10.


You should display the concept or idea in some way within your photograph. For example, if one concept was "Blue," you might photograph the color blue in the sky, a blue item of clothing, a person with a sad expression (which is sometimes described as "having the blues"), and so on. Be creative!


Happy

Pink

Chair

Music

Cold

Looking out

Vegetable

School

Smile

Love

Shadow

Up

Newness

Water

Red

Season

Door/Gate

Hand

Drink

Words

Treasure

Oldness

Natural

Beauty

Little

Part Two


Select your five favorite photographs to create a presentation on a computer. For each photograph, identify the concept that you are presenting and how you have shown this concept in the photograph.

Answers

Answer:

You need to pick 10 concepts from the list and take/pick a picture you think shows the concept. You then pick 5 of your favorites from the 10 and put them on a slideshow, explaining what concept it is and how it shows it.

Explanation:

So if I did vegetable, I would take a good picture of a carrot. Then, if I picked it as one of my five favorites, I would put it on a presentation and say, "This displays the concept of vegetables. My picture shows this concept because carrots are a type of vegetable."

is anyone willing to do my DIT tests for me?

Answers

Answer:

no sorry

Explanation:

Other Questions
Congressman Allan Derulo was elected as a representative to a states 41st district in November of 2010. If he wishes to serve again, when must he win re-election?A.November 2011B.November 2012C.November 2013D.November 2014 Which nitrogenous bases are considered pyrimidines? explain how you can use base ten blocks to answer 1.54+2.37 GIVING 30 POINTSneed it RN Which equation represents a line which is perpendicular to the line5x + 4y = -24? A type of superglue has a density of 0.86 g/mL. What is the mass of a 150 mL sample of this glue? What is the stress term called which is a measure of the stiffness or resistance to deflection? Modulus of Elasticity (E) Extreme Fiber Bending (F ) Horizontal Shear Parallel to the Grain (F //) Compression Perpendicular to the Grain (F z ) pls help me with this For triangle ABC with A(2,1) B(6.1) and C (4,4), what are the coordinates of A'B'C' after Rx-axis)? ILL GIVE BRAINLIEST PLZ HURRY Find the value of x that makes the equation true.2x + 3 = 20A. x= 17/2B. x= 5C. x= 10D. x= 2/17 When substances go through chemical changes, which of the following will always happen?OA. One or more substances will be completely destroyed.OB. Exactly one new substance will form and one will be destroyed.OC. One or more substances with different chemical properties will formOD. A gas will form or a white solid will precipitate. Does anyone know this Someone please help me Ill give you a Brainly is please help me please help me I need help so much What is 43/5 Options:6 6 2/5 6 2/3 8 The 6th graders brought in 56 boxes of tissues 48 pads of loose leaf and 16 rolls of toilet paper. The t acher wants to divide the materials into the greatest amount of containers but wants each container to look the same how many containers can they fill how many of each item will be inside the containers the meaning of always in Spanish What is the opposite of the following word?Malo One week, seventy-two percent of the animals that cam to a veterinary hospital were dogs. If there were 230 animals total, how many were dogs? 14. A linear function is negative for x 2.4 x 0.87 help help help