File: class/Workbook/Examples/Lecture6/order1.py

func1()               # error: "func1" not yet assigned

def func1():
    print func2()     # okay:  "func2" looked up later

func1()               # error: "func2" not yet assihned

def func2():
    return "Hello"

func1()               # okay:  "func1" and "func2" assigned



[Home page] Books Code Blog Python Author Train Find ©M.Lutz