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

plsssssssss helpppppppppp
What is the solution set of the compound inequality 8< 4 - x <10
In act two scene one the audience finds out That Sebastian and Viola are twins and that they are identical at least when they are both dressed as men in what wa
1.) A video store is selling previously owned DVDs for 40% off the regular price of $15. What is the sale price of the DVDs? Show your work 2.) . Due to the i
how do you ask a friend if he or she wants to go to the beach with you? A. Puedes al ir a la playa B. Tu puedo venir a la playa C. Puedes ir contigo a la playa
Please Help!!!! Las ventanas estan (abrir) A.abridas B.abridos C.abiertas D.abiertos
What is the range of the data represented by the box plot?
2CO + 2NO → 2CO2 + N2 is it balannced
If a-b and a+b are twin prime ....then a and b are necessarily _______
Which stament best describes the forces of an object moving up upward?