All challenges
Free Guided

Password Security Checker

Cybersecurity · Beginner · 50 points · about 45 min

Build a simple program that checks whether a password meets basic security requirements.

Start here · about 45 min

Stuck? Open a hint. Try the first one before the next.

Hint 1

any(c.isdigit() for c in password) checks whether a password contains a number.

Hint 2

Use c.isupper() and c.islower() the same way for letters.

Hint 3

Type import string, then string.punctuation lists the special characters.

What you'll build

Practice applying basic password security rules using programming logic.

Your checklist

  • Accept a password from the user.
  • Check whether it contains at least 8 characters.
  • Check for uppercase and lowercase letters.
  • Check for at least one number.
  • Check for at least one special character.
  • Display which requirements are missing.
  • Return an overall strength such as Weak, Medium, or Strong.

Skills you'll practise

Python, strings, conditionals, functions, basic cybersecurity

How it's assessed

A strong submission correctly checks all required password characteristics, provides accurate feedback, handles different inputs appropriately, and contains readable and well-organized code.