Answer to Question #288913 in Python for sai krishna

Question #288913

riya took part in a maths quiz competition to win the prize money she hass to solve a tricky question at the end for a given list of integers write a program where all the integers in a given index range have to be added she will be given M multiple rangs where she should print the sum of numbers for each corresponding range


1
Expert's answer
2022-01-19T12:48:13-0500
'''
    riya took part in a maths quiz competition to win the prize
    money she hass to solve a tricky question at the end for a
    given list of integers write a program where all the integers
    in a given index range have to be added she will be given M multiple
    rangs where she should print the sum of numbers for each corresponding range
'''


LowerBound=1
UpperBound = 10


for r in range(LowerBound,UpperBound):
    Sum = Sum + r
print("Sum of range: %d : %d = %d"%(LowerBound,UpperBound,Sum))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS