Question: Python Programming This is an enhancement of the high/low guessing game. It will be implemented using functions. Requirements: 1) Create the following functions createrandom checkguess

Python Programming

This is an enhancement of the high/low guessing game. It will be implemented using functions.

Requirements:

1) Create the following functions

createrandom

checkguess

playgame

main

2) The createrandom function takes one argument of length (use 1 as the starting number) and return

the random number

3) The checkguess function takes two arguments of the random number and the player guess. It should

return correct, low or high

4) The playgame function sets up the game:

a) Ask the player for the ending range

b) Get the random number

c) Ask the user for a guess then checks the guess and then lets the player know if the guess is correct,

low or high

5) The main function should only start the game and ask if the user wants to play again.

6) Did you read this before doing any coding?

Input is in bold

Enter a number end of guess range: 100

Enter your guess: 50

Guess is low

Enter your guess: 70

Guess is high

Enter your guess: 60

Guess is low

Enter your guess: 65

Guess is low

Enter your guess: 66

Guess is low

Enter your guess: 67

You guessed correctly

Play game again? yes or no: yes

Enter a number end of guess range: 50

Enter your guess: 25

Guess is high

Enter your guess: 15

You guessed correctly

Play game again? yes or no: no

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!