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

A ball is thrown horizontally from the top of a building 14.9 m high. The ball strikes the ground at a point 107 m from the base of the building. The accelerati
What the other name of atoms?
Which of the following had the least influence on participants' willingness to keep giving shocks in the Milgram studies?a. Loss of personal responsibilityb. Se
24% of what number is 72
What was the economy of Saint Domingue dependent upon? Check all that apply.
An oxygen molecule can easily cross a plasma membrane while sodium (Na+) ions are unable to cross the membrane without assistance. This is largely due to the fa
Mr. Abbot buys eight boxes of granola bars for a party each box has nine granola bars after the parties there are 39 bars left how many bars were eating during
A regular hexagon is shown below. Which statement explains why the equation 4x+40=6x can be used to solve for x? All polygons have congruent angles. The interio
What types of rulings are likely to be issued most often by a Supreme Court composed of four liberal judges, two conservative judges, and three moderate judges?
Which of the following is a step in the B2B buying decision process that Eaton's customers would likely go through, as defined in the text? A. Information sear