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
Match each example with the choice that best fits the description
balandron [24]

Answer:

A sentence featuring a metaphor with the word snake is A. Todd was a snake in the grass, waiting for a chance to strike. 

A sentence featuring a simile with the word snake is B. The kite string was wrapped around the branch like a snake. 

A sentence featuring the literal meaning of the word snake is E. a scaly, limbless, elongated, sometimes venomous reptile. 

The connotative definition of the word snake is C. Anita told everyone she would like a snake for her birthday. 

The denotative definition of the word snake is D. one who is untrustworthy or presents an unseen danger.

3 0
3 years ago
Read 2 more answers
Solve the following equations 4(-3.15)
Nutka1998 [239]
-(4x3.15) multiply and you get -12.6
7 0
3 years ago
Read 2 more answers
Suppose your state wanted to secede. What arguments would you make against it
Advocard [28]

Here are some points that could be used :

1. seceding would reduce the amount of resource that the nation as a whole had, so the federal government shall not allowed it to happen.

2. Many people in the population might not agree to the secession so the government had to protect their interest,

3. Secession make our nation become much more vulnerable to attacks, since foreign nations can leverage the separation to gain allied that close to us.

6 0
3 years ago
What are your thoughts on Lev Vygotsky theory of cognitive development?
harkovskaia [24]
<span>I hope this holp focused on the role of culture and social interactions</span>
6 0
3 years ago
Please can you help me
adoni [48]

Answer:

x = 39

Explanation:

Recall that one of the properties of a rhombus is that opposite angels are congruent. Therefore, given Rhombus RSTU, thus:

m<T = m<R

3x - 51 = 2x - 12

Collect like terms

3x - 2x = 51 - 12

x = 39

5 0
3 years ago
Other questions:
  • Which of the following is the most likely impact of clearing a forest to construct a highway? Am I the only one that believes th
    15·1 answer
  • What do you think should be done about the ecological footprint of developed nations, if anything?
    10·2 answers
  • Which of the following is a correct conversion factor?
    12·1 answer
  • (music question) Which compositions are both forms of sacred music?
    10·2 answers
  • Problems that fairy tale heroes have to overcome: Perhaps some of these fairy tale characters need to learn that modern saying,
    15·1 answer
  • Which of the following describes famine?
    15·1 answer
  • Why don't people just say "its A" or "its C" instead of going off on all this random mumbo jumbo of "showing your work" and all
    6·2 answers
  • To what ecosystem are coral reefs compared? Why is it impotant to conserve biodiversity?
    9·1 answer
  • someone come up to with a powerful good name that describes the healing fruit. which basically this fruit ends up having side ef
    10·1 answer
  • How accurately are emotions expressed by body language and facial expressions?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!