Daily Python Projects

Daily Python Projects

Password Generator Script in Python

Level: Beginner

Ardit Sulce's avatar
Ardit Sulce
Sep 16, 2025
∙ Paid
10
Share

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:

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture