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

HELP WITH THIS PLEASE
someone helppppp mee please !
What resulted from the Supreme Court’s ruling in the Scott v. Sandford case? A. The abolitionist movement grew stronger. B. The abolitionist movement grew wea
I don't get this at all
You are an analyst for a firm that imports and distributes specialty oils and vinegars and your company wants you to evaluate their options for taking advantage
Under what operations is the system of polynomials closed?
One of the main screening tests available for prostate cancer is the ________ test.
Which is a function of root hairs? store food produced in the leaves protect the root from injury absorb water and nutrients transport food to the ro
What is the value of 15-2x+2 when x=6 (10 points)
According to Florida's implied consent law, if, during a traffic stop, you refuse to be tested for the presence of alcohol or drugs in your system, your license