Solution-
Question:- Write code using the range function to add up the series 99, 98, 97, ... 1 and print the resulting sum. Expected output: 4950
Complete solution below:-
num=0
for i in range(99, 0, -1):
num=num+i
print("s=",num)
Our Happy Testimonials
They are fast in responding to homework questions. they have the best technical writers. Thanks for helping me with my programming doubts.
I contact to disklib for homework, they help me out, despite there was some technical issue they gone through extra mile for me and provide me good quality work in first priority. 100% recommended.
Desklib's study resources are best & unique. Their study database is easy to access and easy to use.
100 % recommended.