Demo Python "Code In Place 2020" Result

by Daniel M

Description

California Lottery Mega Millions: Results and numbers generator. This program is based on the Mega Millions draw from CALottery. The game consists in selecting 5 numbers from 1 to 70 and a special Mega number from 1 to 25. First, the program web scraps the results from the CALottery web page, that is, the six numbers and the draw number. Then it proceeds to ask the user if he wishes to get new random generated numbers for the next draw. If yes, it generates 6 non-repeating random numbers. If the user prefers to stop once the previous results are shown, the program shows a "Have a nice day!" message and closes.