This is a simple text-based Hangman game created using Python as part of my CodeAlpha Python Programming Internship.
- Contains 5 predefined words
- Randomly selects a word
- Allows the player to guess one letter at a time
- Allows 6 incorrect guesses
- Shows guessed letters
- Handles invalid and repeated inputs
- Displays win or game-over messages
- Python
- random module
- Make sure Python is installed.
- Open the project folder in the terminal.
- Run:
python hangman.py
- Lists
- Strings
- Variables
- if-else
- while loop
- for loop
- Functions from the random module
- User input