5.3.2: Function call in expression Python
https://stackoverflow.com/questions/67680659/5-3-2-function-call-in-expression-python
QuestionAnswer2answered May 25, 2021 at 2:17 PYdef find_max(num_1, num_2):max_val = 0.0if (num_1 > num_2): # if num1 is greater than num2,max_val = num_1 # then num1 is the maxVal.else: # Otherwise,max_val = num_2 # num2 is the maxValreturn max_valnum_a = float(input())num_b = float(input())num_y = float(input())num_z = float(input())max1 = find_max(num_a, num_b)max2 = find_max(num_y, num_z)max_sum = max1 + max2print('max_sum is:', max_sum)Delete the extra two find_max()functions and just call it two times for max1 and max2.
DA: 68 PA: 1 MOZ Rank: 25