Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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

def kwargs_iterate(**kwargs):
    for i, k in kwargs.items():
        print(i, '=', k)

kwargs_iterate(hello='world')
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #craeting #method #number #arguments #python
ADD COMMENT
Topic
Name
9+2 =