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

Why do all ecosystems depend on producers?
What work did Italian poet Dante Alighieri write that takes the reader on an imaginary journey into hell and purgatory?
what is measured in watts that starts with a p
How do you solve a problem like this: How much force must Mr. McDonald exert to lift a 112 kg object? What would happen if Mr. McDonald would exert more than th
Suppose a large atom bonds with a small atom.  Will the properties of the new molecule be the same as the large atom, the small atom, or different from both?
What makes area different from length
What is 13,300 in scientific notation form ?
How did the absolute monarchy in 17th century russia differ from the constitutional monarchy in 17th century england
When two atoms combine by sharing electrons, it is a(n) _____ bond. a) Ionic b)Covalent
Which organization is responsible for enforcing clean-water legislation governing water use and quality in the Everglades?
good job