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
Question 7 of 10
emmasim [6.3K]
C. Natural Rights

John Locke had the idea of natural rights, which he stated were life, liberty, and property. The founding fathers changed property to the pursuit of happiness
3 0
3 years ago
Answer questions 1–8 in "Questions for Discussion" on pp. 777–78 of The Language of Composition. (2nd edition: Answer questions
snow_lady [41]

Answer:1.At that time, Ireland was in social conditions of overpopulation and uncontrolled poverty. These major issues in the economy of the country prompted Swift to write this satiric proposal.

2.A modern audience would become skeptical in a way that they will see this as an exaggerated means for a solution. However, they will also see the sense of it as they will compare it to the modern era of economic inconsistency and incapability.

3.The fourth could be considered the most sardonic as it greatly hits parents who cannot control themselves from reproducing but cannot produce a life for their child

4.The fourth could be considered the most sardonic as it greatly hits parents who cannot control themselves from reproducing but cannot produce a life for their child

5.Swift's purpose of using a provocative approach is to provoke and evoke emotions and in the process, elicit proper and feasible solutions from the audience.

6.Personally, I don't see it as as Swift's own belief but as his way of enlightening the audience on what is truly happening with women and families.

7.The word "proposal" is very catchy in a way that people always wanted to seek for solutions and ways to answer to a problem but are often tired and lazy to have their own ideas.

8.Swift hoped to bring about awareness and ignite the people to not just observe, but also take the necessary action to make their society a better place to live in.

Explanation: i used slader

3 0
3 years ago
A person receives a $200 gift card. It is important for the person to
valkas [14]

answer

spend it

Explanation:

because it could expire

3 0
3 years ago
Read 2 more answers
Witch is a key element found in all carbohydrates lipids proteins and nucleic acids
nadezda [96]
It is carbon, my dude
4 0
3 years ago
24. One explanation for why so many of us are addicted to our phones and social media is that
Nata [24]

Answer:

I'm not completely sure, but try the Premack principle one. If that's not it, I'm sorry.

Explanation:

6 0
3 years ago
Other questions:
  • Read this excerpt adapted from “A Brave Lad.” This story originally appeared in Chatterbox, a book of stories edited by J. Erski
    12·2 answers
  • Alcohol is a _______.
    11·2 answers
  • Which is not a component of sweat
    13·1 answer
  • Nekton include all animals that
    13·2 answers
  • Human cost to south africa
    6·1 answer
  • What was the purpose of the europan coal ans steel community ?
    14·2 answers
  • In the declaration of sentiments
    15·1 answer
  • Soooo.... I just took an iq test .....
    9·2 answers
  • Fill in the blanks ;-)
    12·2 answers
  • What is are some differences between a teacher and a student?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!