Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

kwargs python

def calculate(n, **kwargs):
	n += kwargs["add"]
	n *= kwargs["multiply"]
	return n

print(calculate(3, add=3, multiply=5)) # (3+3)*5 = 30
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kwargs #python
ADD COMMENT
Topic
Name
9+3 =