Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Define a function sum_two_gr with three arguments returning the sum of the greatest two python

# Define a function
def sum_two_gr(a, b, c):
  if min(a, b, c) == a:
    return b + c
  elif _ _ _:
    return _ _ _
  else:
    return _ _ _

# Test new function
print(sum_two_gr(1, 2, 3))
print(sum_two_gr(10, 15, 5))
print(sum_two_gr(20, 10, 30))
 
PREVIOUS NEXT
Tagged: #Define #function #arguments #returning #sum #greatest #python
ADD COMMENT
Topic
Name
5+6 =