This is a simple Hangman Game program written in Python.
In this game, the computer randomly selects a word from a predefined list, and the player tries to guess the word one letter at a time. The player has a maximum of 6 incorrect guesses to identify the word correctly.
This project helps beginners understand Python fundamentals such as loops, conditions, lists, strings, and the random module.
The main objective of this project is to help students understand:
- While loop
- If-else conditions
- Lists and Strings
- Random module
- User input and output
- Programming Language: Python
- Module Used: random
- Editor: Visual Studio Code
-
Install Python on your system.
-
Open the file
hangman.pyin VS Code. -
Open Terminal in VS Code.
-
Run the program using:
python hangman.py
-
Start guessing the letters of the hidden word.
CodeAlpha_HangmanGame/ │ ├── hangman.py └── README.md
Welcome to Hangman Game
Word: _ _ _ _ _ _
Enter a letter: p
Word: p _ _ _ _ _
Enter a letter: x
Wrong Guess! Remaining Attempts: 5
Name: Shree Jee Gupta
Class: B.Tech
Branch: Electronics and Communication Engineering
CodeAlpha Python Programming Internship
This project is created for learning and internship purposes.