Im doing a Lotterry quick pick 5 with powerball random number generator for PYTHON using Pyscriptor XXXXXXXXXXx86) # The first 5 numbers must be unique from each other(1-69), no duplication and also...

Im doing a Lotterry quick pick 5 with powerball random number generator for PYTHON using Pyscriptor(2.6.0.0 x86) # The first 5 numbers must be unique from each other(1-69), no duplication and also must be in a numerically sorted smallest to largest # the 6th number is the powerball and has a range of numbers (1-26) This is my code so far. import random ROWS = 5 COLS = 6 index = 1 firstfive = set() size = 6 length = 0 while length uni = random.randint(1,69) if uni not in firstfive: length += 1 firstfive.add(uni) sixth = random.randint(1,26) print(firstfive, sixth) However, while this returns the correct sequence of numbers it does not return 5 rows worth of unique Lottery tickets, i need it to appear as grid or array For example, #each row must be labeled with PICK: # the first 5 collumns should labeled with corresponding QUICK PICK NUMBER (QP1, QP2, QP3, QP4, QP5) # The 6th collumn should be displayed as POWERBALL It should no arrear in a grid form but in evenly spaced rows and collumns. The second half of the assignment is to create a GUI using tkinter and im assuming that means tkinter.messagebox. # The GUI's purpose is to allow the user to select the number of Picks on the ticket with the maximum picks being 5. The user entry essentail determine the number of Rows(PICKS) displayed

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here