def calculate(n, **kwargs): n += kwargs["add"] n *= kwargs["multiply"] return n print(calculate(3, add=3, multiply=5)) # (3+3)*5 = 30