#21/21 Python Learning "NEW MINI PROJECT " 🍁 Day 21 of Learning Python Today I built my second mini project: a Password Generator 🔐 🛠️ What it does: ~Creates strong, random passwords ~Includes letters, numbers, and symbols ~Lets you choose the password length ~Shuffles characters to keep it unpredictable 💡 What I learned: 🔸 How to use Python’s random and string modules 🔸 Writing functions to keep code clean and reusable 🔸 Ensuring security by mixing different character types ✨ Reflection: Every project makes Python feel less intimidating and more exciting. This one is practical—I can actually use it in real life! 📌 "Day 21: Completed my second mini project—a Python Password Generator! It creates strong, random passwords with letters, numbers, and symbols. Loving how projects make learning stick. 👉 Here you go : CODE import random lower = "abcdefghijklmnopqrstuvwxyz" upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" digits = "0123456789" special = "!@#$%^&*()-_=+[]{}|;:,.<>?/`~" all_characters = lower + upper + digits + special length = int(input("Enter the desired password length: ")) if length < 4:     print("Password length should be at least 4 to include all character types.") else:     password = [         random.choice(lower),         random.choice(upper),         random.choice(digits),         random.choice(special)     ]     password += random.choices(all_characters, k=length - 4)     random.shuffle(password)     final_password = ''.join(password)     print("Generated Password: ", final_password) #Python #21DaysOfCode #MiniProject" #learning #beingconsistent #waytogo

Good this project helped you understand randomness, security basics, and clean logic in Python. Planning to extend it with a strength checker and maybe a UI next. By the way you are doing great

See more comments

To view or add a comment, sign in

Explore content categories