28.5k views
2 votes
Write a python program to calculate the average of two numbers​

User Bcarothers
by
4.3k points

1 Answer

3 votes

Answer:

n1 = int(input("Please enter a number<:"))

n2= int(input("Please enter a number<:"))

sum = n1 + n2

print("The average of the two numbers is", sum / 2)

User Fandyushin
by
5.1k points