Check a list of passwords against common weak passwords automatically.
common_pw = ["123456","password","admin"]
users = {"alice":"123456","bob":"securepw"}
for user, pw in users.items():
if pw in common_pw:
print(f"⚠️ {user} has a weak password")
else:
print(f"{user} password is strong")
Helps secure user accounts proactively.
Next Lesson →