I want to know if defining a function can be related to another function, so it's almost like a chain reaction. With the following formulas, I want it to print the final value, 15.
How should I change this for 'second_formula' to recognize the value 'c' from the 'first_formula', and so on.
def first_formula():
    a = 1
    b = 2
    c = a + b
    second_formula()
def second_formula():
    d = 4
    e = c + d
    third_formula()
def third_formula():
    f = 8
    g = e + f
    print (g)
first_formula()
 
     
    