Question #95138

Write a Python turtle program that computes the sum of 5 numbers entered by the user. Use "For" loop

Expert's answer

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
LATEST TUTORIALS
APPROVED BY CLIENTS