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

Determine the molarity for the fixer Sodium carbonate decahydrate (I dissolved 127.62 grams of sodium carbonate for every 4 liters of water)
The mean of a, b, c, and d is 9 and the mean of a, b, c,d, e and f is 12. Find the mean of e and f. With Step by step explanation​
DESCRIBING HOW OUR LIVES WOULD BE DIFFERENT IF WE DIDN'T HAVE ANY ROUND OBJECTS. BE CREATIVE! MOST CREATIVE STORY WINS 25 Pts!!!!!!!!:) WRITE THE STORY AND SUBM
Evaluate the polynomial 6x - y, for x = -3 and y = 2
5w²-5w=0 . -10n²+35n=0 . 2x²+15x=0 . 18c²+6c=0 . -32y²-24y=0 3k²=6k . 6h2=3h. 4s²=10s . -42z²=14z
25 POINTS Which composer is best known for writing marches and for his work with the U.S. Marine Band? Verdi Dvorak Sousa Foster
Question 1 A thesis statement is defined as:
Evolution never occurs in a straight line. There are always branches and nodes that can be seen along the way. Based on the image, which two statements are true
Sunray foundation, a corporation owned and managed by volunteers, supplies medicines and vaccines to impoverished people in asia and africa. its focus is not on
Brhams often used conventional and traditional forms and techniques in his work. True or false ?