Vai al contenuto principale
🔒 Modalità anteprima. Le prime quindici lezioni di Foundations sono gratuite; questa è Pro. Avvia un trial di 7 giorni per sbloccare l'editor, i suggerimenti AI e il resto del programma. Carta richiesta, disdici in qualsiasi momento dalla Dashboard.Avvia trial di 7 giorni →
← CorsiPython FoundationsModule 9 · Bonus: mini-projectsMINI: Password strength validator (5-rule scoring)mission172 / 174
+200 XP
Compito🌐 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
✏️ Scrivi il tuo codice qui
🐍
Caricamento Python...
Download una tantum (~1 MB). Poi è istantaneo.
📊 Risultato
Premi Esegui per vedere il risultato...

💬 Discussione

Sii il primo a fare una domanda o condividere un consiglio.
Accedi per partecipare alla discussione. La lettura è gratuita.
Caricamento discussione…