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 strongest factor influencing migration selectivity?
damaskus [11]
I would go with the answer E). Just because slavery ended years ago doesn't mean that's its still over even to this day, it use to be about gender as well back than where women couldn't vote but no one cares about that today, the things people care about is race because as the famous quote someone said, humans hate what they don't understand, so most races don't understand why people are all different, so they want to hate them since they don't understand and also get higher authority as well, but to get back to topic race is the most common thing today that encourages people to leave and migrate cause they might not feel welcome.
3 0
3 years ago
How likely is c o v i d to be in the ap test next year
strojnjashka [21]

Answer

very likely

Explanation:

um yeah they will make us write papers about how its affected us all if we even go back to school i bet

3 0
3 years ago
Read 2 more answers
WILL GIVE BRAINLIEST PLEASE HELP!!! ASAP!! Use your knowledge of sleep deprivation and sleep disorders to respond to the prompts
saw5 [17]

Answer:

Some of the signs and symptoms of sleep disorders include excessive daytime sleepiness, irregular breathing or increased movement during sleep. Other signs and symptoms include an irregular sleep and wake cycle and difficulty falling asleep. Some common types of sleep disorders include:

Insomnia, in which you have difficulty falling asleep or staying asleep throughout the night.

Sleep apnea, in which you experience abnormal patterns in breathing while you are asleep. There are several types of sleep apnea.

Restless legs syndrome (RLS), a type of sleep movement disorder. Restless legs syndrome, also called Willis-Ekbom disease, causes an uncomfortable sensation and an urge to move the legs while you try to fall asleep.

Narcolepsy, a condition characterized by extreme sleepiness during the day and falling asleep suddenly during the day.

There are many ways to help diagnose sleep disorders. Doctors can usually treat most sleep disorders effectively once they're correctly diagnosed.

6 0
3 years ago
Read 2 more answers
On the way to school, how does Fern show she loves her new pet? A. She wishes she was back home taking care of him. B. She gives
Mila [183]
A. because she wants to be with him so nothing happens while she is away
6 0
3 years ago
Ano ang tawag sa mga paring misyonero na naglalakbay upang ipalaganap ang kristiyanismo?
Rus_ich [418]
The answer would be B
5 0
3 years ago
Other questions:
  • Lilium philadelphicum is:
    10·1 answer
  • The _________ is the largest organization representing psychologists in the United States.
    12·1 answer
  • Can someone make me a top brainiest
    7·2 answers
  • When might an organism rely on fermentation to produce the energy it needs??
    9·1 answer
  • Insomnia, headaches, and panic are all signs of: a. Test depression b. Test anxiety c. Test confusion
    6·2 answers
  • What is?
    8·2 answers
  • A 8-acre piece of land is subdivided into 4/7-acre lots. How many lots are there?
    7·1 answer
  • Helpp please make you Brainliest
    6·1 answer
  • Https://forms.gle/GoqcRRHEaRC9vxUK6<br><br> Fill er in
    12·1 answer
  • What is correlated constraints
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!