def changingClosure():
    print('Changing a closure taken value after it was taken.')
    a = 1

    def closureTaker():
        return X(a)
    x = closureTaker()
    a = 2
    print('Closure value first time:', x.x)
    x = closureTaker()
    print('Closure value second time:', x.x)
def changingClosure():
    print('Changing a closure taken value after it was taken.')
    a = 1

    def closureTaker():
        return X(a)
    x = closureTaker()
    a = 2
    print('Closure value first time:', x.x)
    x = closureTaker()
    print('Closure value second time:', x.x)