I wanna know, what is main idea function inside a function in djanggo?, something like this example.
def partition_by_mod(base):
def func(n):
return n % base
return staticmethod(func)
when I call this function like this test = partition_by_mod(8), so I'm wondering where the "n" comes from.
thank you ~