1 def f(): 2 return 123 3 4 def g(): 5 return 456 6 7 def h(): 8 return f() 9 10 print h() # 123 11 12 f = g 13 14 print h() # 456