naveenakchurelepati naveenakchurelepati
  • 10-08-2021
  • Computers and Technology
contestada

consider l= 5 ,r= 11. you must determine the sum of the values of the function in the range L to R . you have to calculate sum = lrf(x) in python coding

Respuesta :

onika92 onika92
  • 11-08-2021

def summation (num1, num2):

i = 0

for x in range (num1 : num2 + 1):

i += x

return i

print ( summation(l, r))

Answer Link

Otras preguntas

Graph the equation: y = x + 4. Label the slope and y-intercept on your graph
How significant is the use of scientific investigation? Explain​
If the sum of the square of the number and 4 time the number is 21,what is the number? ​
ured length.  Measurement errors are another type of uncertainty involved in single measurements. Suppose we measure the diameter of a disk. The minimum length
How does international employment help in improving the economy of a country?
What possible problems might concem consumers because there were no regulations for foods and medicines?
Nick has 4 toy cars. Adrian gives Nick 4 more toy cars. How many toy cars does Nick have now? After children draw pictures, have them write a number sentence fo
Solve algebraically for all the values of x -2x^5+14x^4-2x^3+14x^2=0
Explain what you think would happen to an egg placed in salt water? Describe why this would occur.
Makers Corp. had additions to retained earnings for the year just ended of $174,000. The firm paid out $190,000 in cash dividends, and it has ending total equit