Answer to Question #102389 in Python for bo

Question #102389
Write code using the range function to add up the series 99, 98, 97, ... 1 and print the resulting sum. Expected output: 4950
1
Expert's answer
2020-02-06T07:51:47-0500

result = 0

for i in range(99, 0, -1):

result += i

print(result)

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