Computer Science, asked by scienceguru129, 10 months ago

how to make python program for calculating the average?​

Answers

Answered by jagadeesh222
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 Anonymous
10

\huge{\star}{\underline{\boxed{\red{\sf{Answer : }}}}}{\star}

_____________[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