Kodax

محلل قوة كلمة المرور — تحدي Python

اكتب الدالة analyze_password(password) التي ترجع قاموساً فيه: score (0-100)، و strength ("weak" أو "medium" أو "strong")، و tips (قائمة نصائح للتحسين).

def analyze_password(password):
    """
    تحليل قوة كلمة المرور
    أرجع: {"score": 0-100, "strength": "weak/medium/strong", "tips": [...]}
    """
    # اكتب الحل هنا
    pass

# اختبار
print(analyze_password("hello"))
print(analyze_password("MyP@ssw0rd!2024"))

حل هذا التحدي يرتبط بفتح دورة «أمن الشبكات» بحسابك.

ابدأ الحل