Write a programe to display the sum of numbers from
50 to 1.
Answers
Answered by
0
Answer:
s=0
for i in range(1,51):
s+=i
print("Sum of numbers from 1 to 50 is:",s)
OR,
s=sum([i for i in range(1,51)])
print("Sum of numbers from 1 to 50 is:",s)
HOPE IT HELPS YOU!!!!!!!!!!!!!!!!!!!
MARK ME AS THE MOST BRAINLIEST!!!!!!!!!!!!
Similar questions