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

In gym class, you run 3/5 mile. Your coach runs 10 times that distance each day, How far does your coach run each day?
Write an algebraic expression for the difference of 10 and u
In gym class, you run 3/5 mile. Your coach runs 10 times that distance each day, How far does your coach run each day?
A compass is a magnet and Earth is a magnet. How does the magnetism of a compass work with the magnetism of Earth so that a compass is a useful tool for navigat
Describe a disadvantage of marsupial development.
The Red Scare began after _________
A child sits two meters from the center of a merry-go-round. How far does she travel during one revolution?
How have the systems of law dating from Ancient Rome influenced the U.S. legal system
The invention of agriculture a. led to an increased birth rate and death rate. b. provided a more dependable food supply. c. allowed people to settle down in vi
How many fourths are in 2 1/2