# Day 44 - Solution Help

I’m reviewing 2D lists and trying to build this, and I can’t figure out why the “X” won’t populate the bingo card. Can someone please explain? Is the only approach to create a new Boolean, or with some adjustments will my approach below work?

``````import random, os, time

bingo = []

def ran():
number = random.randint(1,90)
return number

def prettyPrint():
for row in bingo:
for item in row:
print(f"{item:^10}",end="  |  ")
print()
print("-------------------------------------------")
print()

numbers = []
for i in range(8):
numbers.append(ran())

numbers.sort()

bingo = [ [ numbers[0], numbers[1], numbers[2]],
[ numbers[3], "BINGO", numbers[4] ],
[ numbers [5], numbers[6], numbers[7]]
]

prettyPrint()

while True:
nextnum = int(input("Next number: "))
for row in bingo:
for item in row:
if item == nextnum:
item = "X"
time.sleep(1)
os.system("clear")
prettyPrint()
else:
continue
``````

A post was merged into an existing topic: Day 044 - Project 44 : Bingo Game