Item 1: Unbound Local Error

a = 5
def foo():
    if 1 == 2:
        a = 10
    print('a=', a)

if __name__ == '__main__':
    foo()