In this basic Python 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.
Program :
a = 30 b = 20 c = 40 print("Average of Three Numbers : ", (a + b + c)/3)
Output :
Average of Three Numbers : 30.0