First page Back Continue Last page Overview Graphics

Functions inside Functions

def f():

def g():

print("Hi, it's me 'g'")

print("Thanks for calling me")

print("This is the function 'f'")

print("I am calling 'g' now:")

g()

f()

This is the function 'f'

I am calling 'g' now:

Hi, it's me 'g'

Thanks for calling me