Подфункция 1:
Код: Выделить всё
def func(x=1, y=2):
z = x + y
return z
Код: Выделить всё
def func2(a=3, b=4):
c = a - b
return c
Код: Выделить всё
def finalFunc(lemons, input1, input2, input3, input4):
result = func(input1, input2) + func2(input3, input4) + lemons
return result
Код: Выделить всё
>>> finalFunc(lemons=1)
3
Код: Выделить всё
>>> finalFunc(lemons=1, input1=4, input4=6)
4
Подробнее здесь: https://stackoverflow.com/questions/790 ... -specified