Answer:
def find_max(num_1, num_2):
max_val = 0.0
if (num_1 > num_2): # if num1 exceeds num2,
max_val = num_1 # then num1 becomes the maxVal.
else: # In the other case,
max_val = num_2 # num2 becomes the maxVal
return max_val
max_sum = 0.0
num_a = float(input())
num_b = float(input())
num_y = float(input())
num_z = float(input())
max_sum = find_max(num_a, num_b) + find_max(num_y, num_z)
print('max_sum is:', max_sum)
Explanation:
I incorporated the part that was missing. Additionally, you neglected to include parentheses. Everything I added is emphasized.
To determine the max_sum, you should invoke the find_max function two times and add the outputs. In the first invocation, apply the variables num_a and num_b (This will provide the larger of the two). In the second invocation, apply the variables num_y and num_z (This will again yield the greater of the two)