DevJourney

Python/Basics/Average/average.py

x=int(input("Enter number 1 : "))
y=int(input("Enter number 2 : "))
z=int(input("Enter number 3 : "))
sum=x+y+z
avg=sum/3
print("Average of the three numbers ({0},{1},{2}) is {3}".format(x,y,z,avg))
View on GitHub