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

You bought a car for $25,000. You have owned it for one year, and it is now worth $21,000. What is the percent decrease in your car's value?16%19%84%119%
Why did the Virginia Company give settlers the right to self-government?
How did machines speed up  textile manufacturing
The cost of 5 similar digital cameras and 3 similar video cameras is 3213. Each video camera costs 4 times as much as each digital camera. John buys a digital c
how do you can you solve this problem 37 + y = 87; y =
Jamaal buys his clothes at Super Discounts. On Saturday, he bought shoes regularly priced at $40 for 25% off, and a jacket regularly priced at $100 for 30% off.
How did machines speed up  textile manufacturing
Can water and pebbles form a solution?
You work at a clothing store, and your boss wants you to find out which type of shirt had the highest percentage of sales. You found that 13 out of 20 tank tops
in rabbits, black fur is dominant over white fur.  Show the cross of a heterozygous black male with a homozygous white female.