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
Please help ASAP!
kumpel [21]
The answers should be in the reading, that’s why it says, “read the..answer the following questions..answers are in the lesson.”
4 0
3 years ago
How environmental issues affect food dishes the 3 rs (reduce, reuse, recycle)
Oksi-84 [34.3K]

Many factors including farming method, where food is grown, what pesticides and fertilisers are used, what is fed to our livestock, and so on, affect the environmental impact of the food we buy and eat. ... Water and air pollution, loss of wildlife, and of natural habitats all result from food production.

7 0
3 years ago
Social institutions fail to influence the conduct of individuals seeking monetary success. This causes a state of normlessness,
Ad libitum [116K]

Answer:

Anomie is a state of normlessness.

Explanation:

Anomie pertains to a <em><u>social condition where a particular society no longer observes the norms, rules, and values previously present in the said social institution. </u></em>It is a state of normlessness. Emile Durkheim, a sociologist, was the first person who coined this term. Anomie happens when there are drastic changes in society.

In the scenario given in the question, social norms can no longer affect the behavior/conduct of a person preoccupied with monetary success. In previous times, moral conduct is an essential and integrative trait necessary to be well-accepted in society. But, a lot has happened: technological advancement, lifestyle goals, and career aspirations. These ambitions drive people to value money more than conduct.

8 0
3 years ago
The scientific method is defined as a set of_____________for
Aneli [31]

Answer:

The scientific method is defined as a set of procedures for gathering and interpreting data

7 0
3 years ago
The primary function of the skin is to
ruslelena [56]
Three main functions are protection regulation and sensation. Protection is primary I️ believe.
4 0
3 years ago
Read 2 more answers
Other questions:
  • How many pages would be needed to show a million stars?
    7·2 answers
  • What is ecological surplus? Ecological deficit? How does this relate to environmental footprints?
    5·1 answer
  • Because the Internet breaks down barriers and let people explore areas not traditionally meant it can help
    9·1 answer
  • Opportunity cost is calculated by which of the following?
    6·2 answers
  • The North American spotted owl preys on small mammals. Suppose an organism was introduced into the ecosystem that also preys on
    7·2 answers
  • How does the role of the Mexican legislature compare to the Russian legislature?
    12·1 answer
  • Describe how historically the political geography of colonialism affected indigenous
    8·1 answer
  • Match the letters to the numbers please. Put it down below the comments and please do not put any links please. This is for an e
    9·1 answer
  • Use this paragraph: Carlon is using two wooden blocks to model the movement of Earth's plates. He pushes one block forward
    9·1 answer
  • Sa konsepto ng ekonomiks sa bawat pagpapasya ay kalimitang May pagpili o pagsasakripisyong nagaganap kapalit ng ibang bagay ito
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!