class Passenger:
def __init__(self, name, IsBooked):
self.name = name
self.IsBooked = IsBooked
Seats = [[0]*2]*2
for i in range(2):
for j in range(2):
Seats[i][j] = Passenger('', False)
for i in range(2):
for j in range(2):
if(Seats[i][j].IsBooked == False):
print('X')
print('\n')
I want to print the output as
X X
X X
But I am getting the result as
Where Should I modify the code to get the expected result?