def avg(a, b):
    return (a+b)/2

a = int(input("Enter 1st num: "))
b = int(input("Enter 2nd num: "))

c = avg(a, b)
print(c)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: