# Use partial function from functools module to rewrite the method for doubleNum and tripleNum
from functools import partial

def multiply(x, y):
    return x * y

def doubleNum(x):
    return multiply(x, 2)

def tripleNum(x):
    return multiply(x, 3)

newDoubleNum = partial(multiply, y=2)
print(newDoubleNum(69))

newTripleNum = partial(multiply, 3)
print(newTripleNum(69))
e2f6b96784624751d75f673fd47ede1c22985977
<mask token>


def multiply(x, y):
    return x * y


def doubleNum(x):
    return multiply(x, 2)


def tripleNum(x):
    return multiply(x, 3)


<mask token>

<mask token>


def multiply(x, y):
    return x * y


def doubleNum(x):
    return multiply(x, 2)


def tripleNum(x):
    return multiply(x, 3)


<mask token>
print(newDoubleNum(69))
<mask token>
print(newTripleNum(69))

<mask token>


def multiply(x, y):
    return x * y


def doubleNum(x):
    return multiply(x, 2)


def tripleNum(x):
    return multiply(x, 3)


newDoubleNum = partial(multiply, y=2)
print(newDoubleNum(69))
newTripleNum = partial(multiply, 3)
print(newTripleNum(69))

from functools import partial


def multiply(x, y):
    return x * y


def doubleNum(x):
    return multiply(x, 2)


def tripleNum(x):
    return multiply(x, 3)


newDoubleNum = partial(multiply, y=2)
print(newDoubleNum(69))
newTripleNum = partial(multiply, 3)
print(newTripleNum(69))

# Use partial function from functools module to rewrite the method for doubleNum and tripleNum
from functools import partial

def multiply(x, y):
    return x * y

def doubleNum(x):
    return multiply(x, 2)

def tripleNum(x):
    return multiply(x, 3)

newDoubleNum = partial(multiply, y=2)
print(newDoubleNum(69))

newTripleNum = partial(multiply, 3)
print(newTripleNum(69))