Because I am new to Python, I'm having a hard time about the syntax. Consider that I have a `class A` that stores a list of objects of a `class B`. Each class has a value named `x`. At the end of the code, I iterate through a `list of A` comparing which `x` is bigger and printing on the console.

The code:

```
class A:
    def __init__(self, x_a, listB=None):
        self.x = x_a
        if listB is None:
            listB = []
        self.listOfBs = listB

class B:
    def __init__(self, x_b, cp):
        self.x = x_b
        self.comparison = cp

ListB = []
for i in range(0,3): 
    x = B(i, None) 
    ListB.append(x)

ListA = []
for i in range(0,3):
    y = A(i,ListB) 
    ListA.append(y)

for a in ListA:
    for b in a.listOfBs:
        if a.x > b.x:
            b.comparison = 'A IS BIGGER'

        else:
            b.comparison = 'A IS NOT BIGGER'

for a in ListA:
    for b in a.listOfBs:
        print(a.x, b.x, b.comparison)

```

The output I'm receiving is:

```
(0, 0, 'A IS BIGGER')
(0, 1, 'A IS BIGGER')
(0, 2, 'A IS NOT BIGGER')
(1, 0, 'A IS BIGGER')
(1, 1, 'A IS BIGGER')
(1, 2, 'A IS NOT BIGGER')
(2, 0, 'A IS BIGGER')
(2, 1, 'A IS BIGGER')
(2, 2, 'A IS NOT BIGGER')

```

Which it's not quite expected.

**EDIT** Output expected is:

```
(0, 0, 'A IS BIGGER')
(0, 1, 'A IS NOT BIGGER')
(0, 2, 'A IS NOT BIGGER')
(1, 0, 'A IS BIGGER')
(1, 1, 'A IS NOT BIGGER')
(1, 2, 'A IS NOT BIGGER')
(2, 0, 'A IS BIGGER')
(2, 1, 'A IS BIGGER')
(2, 2, 'A IS NOT BIGGER')

```

Any help would be greatly appreciated.

Thank you.