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 www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
8+1 =