Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

How would I develop a Python program that takes integers, n and s (start) as input and computes the arithmetic average of numbers [Start+1, Start+2…..Start+N-1} and prints the results. This is my program right now, I’m stuck on the for loop part.

How would I develop a Python program that takes integers, n and s

(start) as input and computes the arithmetic average of numbers [Start+1, Start+2…..Start+N-1} and prints the results.
This is my program right now, I’m stuck on the for loop part.

N = int(input(“Pick an integer for N.”))
print(“N =”,N)
Start = int(input(“Pick a starting integer.”))
print(“Start =”,Start)

total = 0
for i in[Start, Start + N]:
total += i
print(str(total))
print(str(total/N))

This program doesn’t seem right but I can’t figure a solution.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"