Multiplying Sum of Three Args by 2

  • Share this:

Code introduction


This function accepts three arguments, adds them together, and then multiplies the result by 2 through an inner function called bbb.


Technology Stack : Built-in functions, defining functions

Code Type : Function

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2, arg3):
    def bbb(arg):
        return arg * 2

    return bbb(arg1 + arg2 + arg3)