DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit