Summation of an Iterable and a Number

  • Share this:

Code introduction


This function takes two arguments, the first is an iterable sequence of numbers, and the second is a number. It returns the sum of the two arguments.


Technology Stack : Built-in function sum(), argument passing

Code Type : Function

Code Difficulty :


                
                    
def a(arg1, arg2):
    return sum(arg1) + arg2