Zum Hauptinhalt springen
🔒 Vorschaumodus. Die ersten fünfzehn Foundations-Lektionen sind kostenlos; diese hier ist Pro. Starte einen 7-Tage-Trial, um den Editor, AI-Hinweise und den Rest des Lehrplans freizuschalten. Karte erforderlich, jederzeit im Dashboard kündbar.7-Tage-Trial starten →
← KursePython FoundationsModule 9 · Bonus: mini-projectsMINI: Password strength validator (5-rule scoring)mission172 / 174
+200 XP
Aufgabe🌐 shown in RU
Implement `strength(pw)` returning one of six labels based on the five rules. Run on 4 passwords and print each label: "abc" -> weak (1 rule passes — lowercase only) "abcdef12" -> ok (3 rules) "Abcdef12" -> good (4 rules) "Abcdefgh1234!" -> very strong (5 rules) (Score 0 = "very weak" — empty string / nothing passes. None of the 4 test inputs hit that, but the label is still in the table.) Expected: weak ok good very strong
✏️ Schreibe deinen Code hier
🐍
Python wird geladen...
Einmaliger Download (~1 MB). Danach läuft alles sofort.
📊 Ergebnis
Klicke auf Ausführen, um das Ergebnis zu sehen...

💬 Diskussion

Sei der erste — stelle eine Frage oder teile einen Tipp.
Anmelden um an der Diskussion teilzunehmen. Lesen ist kostenlos.
Diskussion wird geladen…