Site icon Tutor Bin

West Coast University Python Project

West Coast University Python Project

Description

Write a function (guessing_game) that takes no arguments

When run, the function chooses a random integer between 0 and 100 (inclusive)

Then ask the user to guess what number has been chosen.

Each time the user enters a guess, the program  indicates one of the following:

Too high

Too low

Just right

If the user guesses correctly, the program exists. Otherwise, the user is asked to try again.

The program only exits after the user guesses correctly.

Use the randit function (https://docs.python.org/3/library/random.html#random.randint) in the random module to generate a random number.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version