python beginner До 2026-11-17

Validate a strong password

Write check_password(pw) that returns a list of problems (empty list = strong password).

Rules, each with the exact message to return:

Rule Message
at least 10 characters "too short"
at least one lowercase letter "needs a lowercase letter"
at least one uppercase letter "needs an uppercase letter"
at least one digit "needs a digit"
no spaces "no spaces allowed"

Return the messages in the order of the table.

Уже решили: 0.

python
РедакторCtrl + Enter

            
        

Когда тесты выводят "All tests passed", задача отмечается как решённая в этом браузере.

Отправить решение на проверку