Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 846 Bytes

File metadata and controls

22 lines (17 loc) · 846 Bytes

Number Guessing Game

This is a simple Python project that I created while studying the Cisco Python Essentials 1 course.

About the Project

The program is a game where the computer picks a random number between 1 and 100. The player has to guess the correct number.

How it Works

  1. The computer selects a secret number.
  2. The user enters their guess.
  3. If the guess is too low, the program tells the user to try a larger number.
  4. If the guess is too high, the program suggests a smaller number.
  5. The game continues until the user finds the correct number.
  6. At the end, it shows how many attempts the user took to win.

Requirements

To run this game, you only need Python installed on your computer.

How to Run

  1. Download the script.
  2. Open your terminal or command prompt.
  3. Run the command: python your_filename.py