Computers and Technology, 27.08.2021 17:40 genyjoannerubiera
In Python
Assign max_sum with the greater of num_a and num_b, PLUS the greater of num_y and num_z. Use just one statement. Hint: Call find_max() twice in an expression.
Sample output with inputs: 5.0 10.0 3.0 7.0
max_sum is: 17.0
def find_max(num_1, num_2):
max_val = 0.0
if (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 maxVal
return max_val
max_sum = 0.0
num_a = float(input())
num_b = float(input())
num_y = float(input())
num_z = float(input())
''' Your solution goes here '''
print('max_sum is:', max_sum)
Answers: 1
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
Computers and Technology, 24.06.2019 17:30
When you type january in a cell, then copy it using the fill handle to the cells below and the data automatically changes to february, march, april, and so on, what is this feature called? auto fill automaticcopy monthfill textfill
Answers: 1
Computers and Technology, 24.06.2019 23:30
What is the opening page of a website called? a. web page b. landing page c. homepage d. opening page
Answers: 1
In Python
Assign max_sum with the greater of num_a and num_b, PLUS the greater of num_y and num_z....
Mathematics, 13.05.2021 22:00
Social Studies, 13.05.2021 22:00
Mathematics, 13.05.2021 22:00
Mathematics, 13.05.2021 22:00
Mathematics, 13.05.2021 22:00
Mathematics, 13.05.2021 22:00
History, 13.05.2021 22:00
Computers and Technology, 13.05.2021 22:00
Mathematics, 13.05.2021 22:00