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
What is the marginal tax rate (rounded to the nearest tenth of a percentage point) for someone whose income increases from $50,0
Jlenok [28]

Answer:

I've done the outline for u, just fill in the blanks and you'd get the answers.

5 0
2 years ago
Describe the political socialization that has occurred in your life
levacccp [35]

People develop their political values, beliefs, and orientations through interactions with agents of socialization. ... They can influence people's attitudes about political actors and institutions. Know thinks about it in your own life. Hope this helps

7 0
3 years ago
5.
olga nikolaevna [1]

Answer:

O A. frequency.

Explanation:

Intensity is how stressful the thing is while duration is how long it lasts. Stress is just what it is, and frequency is how often it repeats itself, that is, the rate at which it repeats. Every time it repeats it has its intensity and duration.

6 0
2 years ago
What is in-person customer service?
bezimeni [28]
When you go to a shop or office and you ask for the manger for help or for a complaint etc that is in person customer service as you’re in person to receive the customer service.
3 0
3 years ago
Write the equation in function form 5x-y=7
andrey2020 [161]
5x-y=7
-y=-5x+7
y=5x-7
f(x)=5x-7
4 0
3 years ago
Other questions:
  • Analyze the status update below and answer the question that follows.
    14·1 answer
  • In the United States, corporations are treated as individual citizens under the law. True False
    10·1 answer
  • Why hasn't the water ice near the Moon's poles been evaporated by the Sun?
    13·2 answers
  • From "My Parents Were Deported" by Diane Guerrero (Copyright © Diane Guerrero, 2014). Reprinted by kind permission of the author
    13·1 answer
  • Imagine that you are the principal of a school and you just found out that there was a fight in the lunchroom during lunch. You’
    13·1 answer
  • Compare the bust of euthydermos with the face of the bronze charioteer
    6·1 answer
  • The specific heat of water is 4.186 J g-1 °C-1. What is the amount of energy, in J, required to heat 10.00 g of water 20.00 °C?
    12·1 answer
  • All of the following serve as checks on the power of the federal courts EXCEPT:
    5·1 answer
  • This assignment is due is half an hour and I'm really lost
    8·1 answer
  • I need this answered right away, please!!
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!