Write a python function to find the add two numbers and then find the largest among sum and other two inputs


Topic: Write a python function to find the add two numbers and then find the largest among sum and other two inputs

Solution

def find_the_largest(num1, num2):
    sum_ = num1+num2
    if num1 >= sum_ and num1 >= num2:
        return num1
    elif num2 >= sum_ and num2 >= num1:
        return num2
    else:
        return sum_
    



List all Python Programs