Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

unlimited arguments

# unlimited arguments
def func(*args, **kwargs):
    print(args, kwargs)

func(1,2,3,4, k=0, x=8, hey=10) 	# print (1, 2, 3, 4) {'k': 0, 'x': 8, 'hey': 10}
 
PREVIOUS NEXT
Tagged: #unlimited #arguments
ADD COMMENT
Topic
Name
8+4 =