Lesson 27: Password Strength Check

password = input("Enter password: ")

if len(password) >= 8 and any(char.isdigit() for char in password):
  print("Password is strong")
else:
  print("Password is weak")

This helps users create safer passwords.

Next Lesson →