Saltar para o conteúdo principal
🔒 Modo de pré-visualização. As primeiras quinze aulas de Foundations são grátis; esta é Pro. Inicie um trial de 7 dias para desbloquear o editor, as dicas AI e o resto do programa. Cartão necessário, cancele a qualquer momento no Dashboard.Iniciar trial de 7 dias →
← CursosPython FoundationsModule 9 · Bonus: mini-projectsMINI: Password strength validator (5-rule scoring)mission172 / 174
+200 XP
Tarefa🌐 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
✏️ Escreve o teu código aqui
🐍
A carregar Python...
Download único (~1 MB). Depois, instantâneo.
📊 Resultado
Clica em Executar para ver o resultado...

💬 Discussão

Seja o primeiro a fazer uma pergunta ou compartilhar uma dica.
Faça login para entrar na discussão. A leitura é gratuita.
Carregando discussão…