Random Password Generator &
Hangman Game using Python
Name: _________________________
Roll No / ID: __________________
Course / Semester: ______________
Department / College: ___________
Supervisor / Instructor: ________
Date of Submission: _____________
Abstract
This project implements two Python-based applications: a Random Password Generator for
creating secure, customizable passwords, and a Hangman Game to demonstrate string
manipulation and logic building. The aim is to strengthen programming skills, explore
security concepts, and apply Python for practical problem solving.
Introduction
The project focuses on two aspects: generating strong passwords to enhance security and
creating a simple command-line Hangman game to demonstrate logic implementation. Both
applications use Python's built-in libraries and provide an opportunity to learn coding,
debugging, and user interaction in a real-world context.
Objectives
• To develop a secure random password generator.
• To design a text-based Hangman game for entertainment and practice.
• To gain experience using Python in Anaconda Jupyter and PyCharm.
• To document and present the implementation process in report form.
Tools & Environment
• Programming Language: Python 3.x
• IDEs: Anaconda Jupyter Notebook, PyCharm
• Libraries: secrets, string, random
• Operating System: Windows/Linux/Mac
Project Overview
The project is divided into two parts:
1. Random Password Generator – Generates secure passwords with user-selected options.
2. Hangman Game – A text-based game where the user guesses letters to find a hidden
word.
Implementation Details
1. Random Password Generator: Uses Python's 'secrets' and 'string' libraries to generate
strong, unpredictable passwords.
2. Hangman Game: Implements game logic with loops, condition checks, and word lists.
How to Run
1. Open the project in Jupyter Notebook or PyCharm.
2. Run `password_generator.py` to generate passwords interactively.
3. Run `hangman.py` to play the game in the terminal/console.
4. For Jupyter, open `password_generator.ipynb` and execute cells step by step.
Sample Outputs
[Insert screenshots or console outputs here]
Testing & Results
Include a table of test cases with inputs, expected outputs, and actual outputs.
Screenshots
[Insert screenshots of Jupyter and PyCharm runs here]
Discussion & Limitations
The password generator provides strong passwords, but it currently only runs in CLI mode.
The Hangman game is limited by the size of the word list. Future improvements can include
a GUI interface and an expanded dictionary.
Future Work
• Create a GUI version of both applications.
• Add difficulty levels and larger word banks to Hangman.
• Integrate password storage with encryption for secure usage.
Conclusion
The project successfully implemented two Python applications: a Random Password
Generator and a Hangman Game. It demonstrated Python programming, logical problem
solving, and application of libraries. The work enhanced understanding of security basics
and coding practices.
References
1. Python Documentation - https://docs.python.org/3/
2. TutorialsPoint, GeeksforGeeks, W3Schools (for syntax references)
Appendix A: Source Code
[Paste full code of password_generator.py and hangman.py here]
Appendix B: Project Link
The complete project folder (Jupyter notebook + Python scripts) is available at:
[Insert Google Drive or GitHub link here]