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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started