Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make a function that accepts any nuber of arguments python

def f(*arg):
    return arg
  
>> print(f(1, 2, 3, 4))
>> output: (1, 2, 3, 4)
 
PREVIOUS NEXT
Tagged: #function #accepts #nuber #arguments #python
ADD COMMENT
Topic
Name
9+3 =