# Name:

"""
Quiz  Week 8

On this sheet, write down the output from each print statement in this module.

If executing the print statement would raise an exception,
just write ERROR 
"""

class A(object):
    def __init__(self, a):
        self.a = a
        
class X(object):
    def __init__(self, x, b):
        self.x = x
        self.b = b

b = A(0)

y = X(1, b)

z = X(2, b)

print b.a

print y.x

print y.b.a

print z.x

print z.b.a

b.a = 99

print b.a

print y.x

print y.b.a

print z.x

print z.b.a

y.q = 7

print y.q

print z.q
