Ну как-то так
print("number 1 = ")
num1 = int(input())
print("number 2 = ")
num2 = int(input())
print("output: ", ((num1 * num1) + (num2 * num2))/ 2)
Ну как-то так
print("number 1 = ")
num1 = int(input())
print("number 2 = ")
num2 = int(input())
print("output: ", ((num1 * num1) + (num2 * num2))/ 2)