In this python basic program, we will get the Average of given numbers.
Steps to solve the program
- Take three numbers as input.
- The average is calculated by adding the numbers divided by the total numbers (i.e a+b+c/3).
- Print the output.
a = 40
b = 50
c = 30
print("Average: ",(a+b+c)/3)
Output :
Average: 40.0