Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

unlimited keyword arguments python

def calculate(n, **kwargs):
  print(n + kwargs['add'])
  print(n * kwargs['multiply'])


calculate(3, add=4, multiply=5)
 
PREVIOUS NEXT
Tagged: #unlimited #keyword #arguments #python
ADD COMMENT
Topic
Name
5+1 =