Question: For this assignment, you will write a program in PYTHON that will allow the user to play a game of instant lottery called PICK5 .

For this assignment, you will write a program in PYTHON that will allow the user to play a game of instant lottery called PICK5.

PICK5: Pick five numbers from 1 to 44, guess them all to win.

Your program should:

1. Ask the user to enter five numbers (one at a time) and store those numbers in a list called usernumbers

2. Generate five random numbers which will be the winning numbers and store them in a second list, called winning numbers

3. Display the winning numbers from the winning numbers list

4. Display one of the following two messages:

CONGRATULATIONS! YOU WON THE LOTTERY!

Sorry, you do not win this time. (if all the numbers entered by the user match the winning numbers)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!