This is a simple text-based Hangman game developed as part of the CodeAlpha Python Programming Internship. The goal of this project is to apply fundamental Python concepts to build an interactive command-line game where the user guesses a randomly selected word one letter at a time.
- Uses a list of 5 predefined tech-related words
- Random word selection using Python’s
randommodule - Allows up to 6 incorrect guesses
- Console-based interface with clear prompts
- Tracks and displays correct and incorrect guesses
randommodulewhileloopif-elsestatements- Lists and strings
- User input/output (
input()andprint())
- Make sure you have Python 3.x installed.
- Download or clone this repository.
- Open a terminal in the project directory.
- Run the following command:
python hangman.py