#S0008. 密码强度检测器

密码强度检测器

1. Description

Create a password strength checker. Input a password string, determine its strength level based on:

  1. Weak: 0-2 conditions met
  2. Medium: 3 conditions met
  3. Strong: 4 conditions met

Validation conditions:

  • Length ≥ 8
  • Contains ≥1 uppercase letter
  • Contains ≥1 lowercase letter
  • Contains ≥1 digit or special symbol (!@#$%^&*)

2. Input & Output

Input:

  • A single string
password = input().strip()

Output:

  • Strength level (Weak/Medium/Strong)

Example

# Input: 
Hello123
# Output: 
Strong
# Input: 
abc
# Output: 
Weak