Question: 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 90 and 100 without going over 100. 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 1 and 25 and displaying them for the user (i.e., the "player") to see. You can call them num1, num2 and num3. A random number is generated using the random.randint(start, 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 1 to 100(inclusive) is: 1 num1= random. randint (1,100) 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

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!