def ultimate_math (num1, num2):
try:
array_num = [num1, num2]
print (num1 + num2)
print (num1 - num2)
print (num1 * num2)
print (num1 / num2)
print (num1 % num2)
print ((num1 + num2) / (len(array_num)))
print ((num1**2) + (num2**2))
except ValueError:
return "Invalid Input"
user_num1 = float (input (" Please enter a num: "))
user_num2 = float (input (" Please enter a second num: "))
print (ultimate_math (user_num1, user_num2))