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

Oof Oof Oof Oof Oof Oof Oof
At Joe's Clown Car Rental Agency, renting a car costs $45 plus $0.75 for every mile it is driven. What is an equation that can be used to find the number of mil
Identify the type of sentence. You can go to farmers market, or you can shop at the grocery store. Simple, compound, or complex.
Which type of figurative language is shown in the sentence? * The long, sheer curtains twirled in the breeze metaphor personification alliteration
Who was involved in the story battle of the bagel?
All interactions between the atmosphere and the geosphere involve gases or particles in air and water water and living things. soil and gases or particles in th
What caused the Pilgrims to settle in New England? A. They wanted to escape poverty and starvation. B. They wanted to take part in the fur trade. C. They wanted
Jill reads 6 books per month. The number of books varies directly with the number of months. How many books does Jill read in a year?
16.8 - (-23.72)+(-31.3) = x
Can someone help wit des 10 questions? ------------------------------------------------------------------------------------------------------------------------