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]
2 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]2 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
Identify the oldest stage of succession shown in the figure
konstantin123 [22]

Answer:

The oldest stage of succession show is the forest, commonly called the climax stage

Explanation:

6 0
3 years ago
Please answer fast ;(
Darya [45]
The answer should me d if I’m not mistaken
5 0
2 years ago
Read 2 more answers
Both Country X and Country Y can produce cell phones and video games. The opportunity costs per video game for X and Y are 2 and
LiRa [457]

Answer:

D

Explanation:

We need to know about materials cost and how things are produced how much they pay their workers things like that to understand the comparative advantages

4 0
3 years ago
The point over which a level is centered is called a
barxatty [35]

Answer:

The answer is B: Transit

Explanation:

7 0
3 years ago
4. How many credits does it take to be classified as a tenth-grade student?​
Vsevolod [243]
I think it all depends on what school you go to
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which composer wrote a solo piano piece that incorporated the "Star Spangled Banner," "Hail Columbia," and "Yankee Doodle" into
    15·1 answer
  • The _______________________ of an integer is the ________________that number is from _____________ on a number line. (# of steps
    6·1 answer
  • The figure below shows the dimensions for one engine cylinder in a six-cylinder, V-type automotive engine. Technician A says the
    7·2 answers
  • In order for a hurricane or tropical storm to develop, the temperature of the ocean surface must be
    14·1 answer
  • What term is used to describe behavior that can be labeled criminal because it is contrary to shared social values, customs, and
    14·1 answer
  • Which soil horizon, also known as the zone of accumulation, is enriched in clay, iron oxides, silica, carbonate, and other mater
    7·1 answer
  • Ch
    7·1 answer
  • Could someone please help me write a grabber for a DBQ? The question is why was china’s one child policy a good idea?
    14·1 answer
  • Diamonds are formed when magma containing small amounts of carbon is deeply buried and
    14·2 answers
  • A teacher has recieved false information that one of your friends is a cheater. Explain how each if the following can lead the t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!