![]() ![]() Using the pop method ensures no duplicateĬard (dictionary): The card to to check for the number that was drawn. ![]() Pops a number off a list of random numbers. Generates a bingo card and stores the numbers in a dictionary.Ĭard = random.sample(range(min, max), 5)Ĭard (dictionary): The card to be printed out. ![]() Random_draw_list = random.sample(range(1, 76), 75) I went above and beyond what the assignment called for so I need a little more helping making sure the code is okay. This is for a class, and my professor is a stickler for using best practices. I am posting it here to make get some help reviewing it to make sure I'm using the best practices. I am super proud of this python bingo game I wrote.
0 Comments
Leave a Reply. |