Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

craeting a method that can take any number of arguments in python

def combined_varargs(*args, **kwargs):
    print(args)
    print(kwargs)

combined_varargs(1, 2, 3, a="hi")
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #craeting #method #number #arguments #python
ADD COMMENT
Topic
Name
7+6 =