All resources in ACSE UVA WISE

Python Number Guessing Game

(View Complete Item Description)

 This lesson introduces 9-12 grade students to the Python random library. The program will choose a random number using functions from the Python random library in a set number range. The program will prompt the player to choose a number in the given range and keep track of the number of guesses the player makes. If the player guesses higher than the chosen number, it will give the player a message that their guess is too high. If the player guesses lower than the chosen number, it will give the player a message their guess is too low. The program will continue to prompt the player for guesses until they guess the correct number. 

Material Type: Activity/Lab, Assessment, Homework/Assignment

Author: Ronald Sparks