missymiss9018 missymiss9018
  • 26-05-2023
  • Computers and Technology
contestada

Which of the following best describes what the function compute returns? def compute (n) : i=2 sum =0 while i<=n: sum = sum +i i=i+1 return sum
a. It returns the sum of integers from 2 to n−1 b. It returns the sum of integers from 1 to n−1
c. It returns the sum of integers from 1 to n
d. It returns the sum of integers from 2 to n

Respuesta :

Otras preguntas

Write five decimals that have at least 3 digits to the right of the decimal point. Write the expanded form and the word form for each number.
Biologists have discovered ways ________ can reduce the symptoms of diseases. weather diet energy water
what does " non div" mean in music class
what happen to mycenaean civilization during the dark age
True or False: All the members of the Constitutional Convention wanted the convention to be held in secrecy.
In Lord of the flies, Discuss the change in Jack’s personality that is described at the beginning of the chapter. What is Jack’s highest priority and what does
Though the armistice was in effect, how did the Allies still wage war on Germany?
M=y2-y1/X2-x1 solve y2
Use the word apprentice in a sentence about colonial jobs
The pack normally stays in _____ territory. its their