1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ohaa [14]
3 years ago
5

Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the user to enter that many num

bers, one-by-one, keeping track of the sum. At the end, after the user entered all numbers, output the sum.
Create a variable and assign it the value of 0
Prompt the user for how many numbers they have
With a for loop, set it to repeat enough times to get all their values
Prompt the user for a number
Add that number to the variable that started as 0
Output to the user, the sum of all values
Advanced Placement (AP)
1 answer:
prohojiy [21]3 years ago
8 0

Answer:n = int(input("How many numbers do you want to sum? "))

total = 0

for x in range(n):

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

print("Sum: "+str(total))

Explanation:

You might be interested in
Pls hurry I need help
Nikitich [7]

Answer:

you should take notes notes are very important while setting goals for a research plan

3 0
3 years ago
Most countries within western Europe and South America are highly urbanized. Which of the following statements best explains an
Novay_Z [31]

Answer:

cooooooool

Explanation:

8 0
3 years ago
Which character below does not belong with the rest?<br><br> Moe, Chaplin, Curly, or Larry
klemol [59]
Chaplin doesn’t belong
5 0
3 years ago
Read 2 more answers
Are you worried about falling victim of a terrorist attack?if so,why not?
Natasha2012 [34]
It's really an opinion question from your perspective of terrorism.
5 0
3 years ago
Please help
Aleonysh [2.5K]

Answer:

Two types of Commercial Agriculture: Daily Farming, Grain Farming.

Corn Belt. Fertile Region, located in the Mudwestern is a hub of corn and soybean production. Appalachia. Located in the Appalachian Mountains, it's a center of production for the cash crop Tobblaco.

8 0
3 years ago
Other questions:
  • ¿Qué vio don Quijote que venía hacia ellos?
    8·1 answer
  • What is the capital of nicaragua
    5·2 answers
  • Rising action, Climax, and falling action, are part of? A, plot. b, setting. c, symbolism.
    5·2 answers
  • What factors limited the possibilities for success?
    11·1 answer
  • What type of soil has the greatest water-holding capacity?
    9·2 answers
  • Journal entries for withdrew cash of rs 1000 and goods of rs2000 from the business for domestic use​
    14·1 answer
  • Why isn't wine bottled near the market, as beer<br> and cola are?
    11·1 answer
  • Why might a culture choose to remain hunter-gatherers even though technology offers alternatives?
    9·1 answer
  • A rare dog is born with chloroplast in its cells. explain how this dogs wife would be different from other dogs
    10·1 answer
  • The best way to let the speaker know that you understood what they said is to
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!