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))
 
PREVIOUS NEXT
Tagged: #args #python
ADD COMMENT
Topic
Name
2+4 =