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

num1=float(input("Ingrese valor 1: "))
num2=float(input("Ingrese valor 2: "))

resultado=promedio(num1, num2)

print(resultado)

Embed on website

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