Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This game involves random numbers and a lot of luck ( the game involves luck, not the programming that requires the skills that you are
This game involves random numbers and a lot of luck the game involves luck, not the programming that requires the skills that you are developing The goal of the game is to achieve a score between and without going over If you win, you get a heartfelt "Congratulations, you win!!!" message. If you lose, you get a So sorry, you lose" or some other polite message that you'd like to come up with Your program will keep track of the score which starts at zero when the program begins. The program will start by generating three random numbers between and and displaying them for the user ie the "player" to see. You can call them num num and num A random number is generated using the random.randintstart end method which takes a start & end value and returns an integer from start to end inclusive So an example of generating a number from to inclusive is: num random. randint Python Random is a "module" code implemented by someone else also called a "library" that you will import into your program so that you can use this code. You won't see the code, but you can read more about the random module here.
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