KALIIOWORK / basic_python_programs

Explore easy-to-understand Python programs for beginners! Contribute, learn, and grow your coding skills. Start your Python journey here! 🚀🐍
0 stars 8 forks source link

New Python Program: Number Guessing Game #5

Open KALIIOWORK opened 10 months ago

KALIIOWORK commented 10 months ago

Hello Python enthusiasts! Let's add some fun to our repository with a classic Number Guessing Game implemented in Python. This beginner-friendly task involves creating a Python program where the computer randomly selects a number, and the user has to guess it within a limited number of attempts. This game will demonstrate basic random number generation, input handling, and conditional statements.

Tasks:

Guidelines:

Example:

Welcome to the Number Guessing Game!

I'm thinking of a number between 1 and 100.
You have 7 attempts to guess it.

Enter your guess: 50
Too high! You have 6 attempts left.

Enter your guess: 30
Too low! You have 5 attempts left.

Enter your guess: 40
Correct! Congratulations, you guessed the number in 3 attempts!

How to Contribute:

  1. Fork this repository.
  2. Create a new Python file for the Number Guessing Game: number_guessing_game.py.
  3. Write the Python program following the specified tasks and guidelines.
  4. Test the game thoroughly to ensure it functions correctly.
  5. Commit your changes: git commit -m "Add Number Guessing Game program"
  6. Push to your branch: git push origin add-number-guessing-game
  7. Open a pull request to this repository.

Your contribution will bring joy to users playing this classic game. Thank you for creating this entertaining Python program for our repository!

Tashuuuu commented 10 months ago

Number Guessing Game already exists in the repo. If you want it again, please assign it to me, and I'll do it.