RASEA23
RASEA23 RASEA23
  • 06-09-2021
  • Computers and Technology
contestada

For python how do I ask the user how many numbers they want to enter and then at the ending add those numbers up together?

Respuesta :

gwenspooner85
gwenspooner85 gwenspooner85
  • 06-09-2021

I am not too familiar with the Python language, but the algorithm would be something like this:

1. create a variable for the sums of the number

2. read in how many numbers the user wants to enter (let's call it N)

and then create a for loop:

for N times

read in the next number

increase the sum variable by that number

Hopefully this helps!

Answer Link

Otras preguntas

In modeling, the client: A. imagines himself or herself confronting the feared object. B. imagines the therapist confronting the feared object. C. observes t
A radio wave has a speed of 3.00 x10^8 and a frequency of 100 MHz. What is the wavelength?
What is the length of side angle AB of parrellelogram ABCD ?
Solve the inequality 1/6 w≥2.5
What is a space spinoff
These items are taken from the financial statements of Windsor, Inc. at December 31, 2017. Buildings $97,336 Accounts receivable 11,592 Prepaid insurance 2,944
Determine the speed of sound in air at 700 K. Also determine the Mach number of an aircraft moving in the air at a velocity of 340 m/s. The gas constant of air
John McFadden has just graduated from college and will begin his first year as a teacher in September. Experienced educators have correctly told him that teache
what is 4 days 9h ÷ 4​
Which are SD card types? Choose two answers. Macro-SD Max-SD MicroSD MiniSD