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

One of the beliefs of the populist party was
Andrew Johnson was impeached by Congress when he
if two fractions have the same numerator but different denominators which fraction is greater give an example
Adam just started working at an advertising agency and wants to know who his direct superior is. Which of the following will give Adam this information? A. bar
Imagine you are breeding plants. Your goal is to breed a pure blue flower. You have a field of flowers growing now. But alas, you did two years ago as well! Whe
4. By law, all tax laws must originate with the A. House of Representatives. B. President. C. Senate. D. IRS.
2 things you've learned about federalism
A color change happens during an experiment mixing two liquids. Is this a physical change or chemical change?
Is it correct to say that satellites stay in orbit rather than falling to earth because they are beyond the pull of Earth's gravity?ExplIn
Joel has twice as many CDs as Mariella has. Subtracting 7 from the number of CDs Joel has and dividing by 3 equals the number of CDs Blake has. If Blake has 2