Seudónimo Seudónimo
  • 19-10-2020
  • Computers and Technology
contestada

1) Write a program that prints the sum of the first ten positive integers, 1+2+...+10
I don’t know how to write the code for python

Respuesta :

Cytokine
Cytokine Cytokine
  • 19-10-2020

total = 0

for i in range(1, 11):

   total += i

print(total)

Ver imagen Cytokine
Answer Link

Otras preguntas

What can be learned about ancient greeks from this passage? check all that apply. they had a democratic government. they were interested in science and art. the
Julie read a difficult article about neuroscience. She had to stop often and look up terms she did not know, which meant she needed to reread paragraphs multipl
Which of the following is true about fertilization?
Roberto notices that his hair is decreasing exponentially at a rate of 60% per year. If he starts with 100,000 hairs on his head, how many hairs will he have af
Was Reconstruction a success or failure?
at what temperature is the change in entropy for the reaction equal to the change in entropy for the surroundings?
Help me please I need to get this right to complete
the amount of increase or decrease in revenue that is expected from a particular course of action as compared with an alternative is
If a sample proportion is 0.65, which range of possible values best describes an estimate for the population parameter? • A. (0.65, 0.7) O B. (0.5, 0.89) O C. (
You've been asked to estimate the maximum height of a ball thrown from ground level. The equation that represents the height of the ball as a function of time (