Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

Why are skills inventories important to an organization? Explain.

Answered: 1 week ago

Question

3. How does nonverbal communication express cultural values?

Answered: 1 week ago

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago