how to make python program for calculating the average?
Answers
Answered by
0
Answer:
All you need to do is to iterate a list using a for loop and add each number to a sum variable. Calculate the length of a given list(total numbers in a list) and divide the sum by total length to calculate average.
Answered by
10
_____________[Code]__________
a = int(input("Enter first number : "))
b = int(input("Enter second number : "))
c = int(input("Enter third number : "))
avg = a+b+c/3
print("The average is = ",avg)
# Python is best
______________[End]____________
Hope it helped.
Similar questions