Your task for today is to create a secure password generator in Python that creates strong passwords based on user preferences. This project strengthens your ability to work with strings, random generation, and user input validation.
Project Task
The program should:
Ask the user for password length (minimum 8 characters)
Ask what character types to include:
Lowercase letters (a-z)
Uppercase letters (A-Z)
Numbers (0-9)
Special characters (!@#$%^&*)
Generate a random password meeting the criteria
Display the generated password with strength indicator
Bonus (optional):
Generate multiple passwords at once
Add password strength scoring (weak/medium/strong)
Exclude ambiguous characters (0, O, l, 1)
Save passwords to a file
This project gives you hands-on practice with string manipulation, random generation, and input validation — essential skills for security applications and user interface design.
Expected Output
=== Password Generator ===
Enter password length (minimum 8): 12
Include lowercase letters? (y/n): y
Include uppercase letters? (y/n): y
Include numbers? (y/n): y
Include special characters? (y/n): y
Generated Password: K9#mP2$nQ8xL
Password Strength: Strong
Character types used: 4/4
💻 Launch This Project in Colab
Open the interactive Google Colab notebook for today's project — with full instructions, hints, and solutions.
Click the button below to start coding — no setup needed: