Skip to main content
← CoursesPython FoundationsМодуль 9 · Бонус: міні-проєктиMINI: Password strength validator (5-rule scoring)mission168 / 170
💬 Discuss🧪 Playground+200 XP
Task
Implement `strength(pw)` returning one of six labels based on the five rules. Run on 4 passwords and print each label: "abc" -> very weak (1 rule passes) "abcdef12" -> ok (3 rules) "Abcdef12" -> good (4 rules) "Abcdefgh1234!" -> very strong (5 rules) Expected: very weak ok good very strong

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…