63 155
Assignments Done
99,3%
Successfully Done
In July 2018

Answer to Question #2980 in Python for sarosh

Question #2980
Design a program in python with a loop that asks the user enter a series of positive numbers and display their sum.
Expert's answer
#!/usr/bin/python

n = input("Please enter the number of letters: ")
s = 0
for i in range(1,n+1):
print 'a[',i,']='
a=input()
s=s+a
print 'The total sum of all these numbers is ',s
#####################################################

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions