I believe what you’re asking is how to call a function from within another one
def one_good_turn(n):
return n + 1
def deserves_another(n):
return one_good_turn(n) + 2
n = 1
print one_good_turn(n)
print deserves_another(n)
0
solved Functions calling functions in Python