Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

*args in Python

def myFun(arg1, *argv):
    print("First argument :", arg1)
    for arg in argv:
        print("Next argument through *argv :", arg)
 
 
myFun('Hello', 'Welcome', 'to', 'GeeksforGeeks')
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
7+6 =