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" 时,此挑战会在本浏览器中标记为已解决。

提交您的解决方案进行审核