Answer to Question #95138 in Python for Returce

Question #95138
Write a Python turtle program that computes the sum of 5 numbers entered by the user. Use "For" loop
1
Expert's answer
2019-09-24T06:19:25-0400
s = 0 #var to sum
n = 5 # count of numbers
for i in range(n): # loop start
  s+=int(input()) # add new integer numbers to var s
print ("Sum is: ", s) #printing final 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