Updating search results...

Search Resources

1 Result

View
Selected filters:
  • random-number-guessing
Python Number Guessing Game
Conditional Remix & Share Permitted
CC BY-NC-SA
Rating
0.0 stars

 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. 

Subject:
Algorithms and Programming
Data and Analysis
Material Type:
Activity/Lab
Assessment
Homework/Assignment
Author:
Ronald Sparks
Date Added:
05/09/2022