Program:
#defining three variables
a = 5
b = 6
c = 7
#calculating average using the formula, average = (sum of variables)/(number of variables)
average = (a + b + c)/3
#print the result
print("The average of",a,b,"and",c,"is",average)
OUTPUT:
The average of 5 6 and 7 is 6.0