Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

args in python

def add(*args):
    total = 0
    for i in args:
        total += i
    
    return total

print(add(5,5,10))
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #args #python
ADD COMMENT
Topic
Name
6+2 =