Acceptable Password II Acceptable Password II

In this mission you need to create a password verification function.

Those are the verification conditions:

  • the length should be bigger than 6;
  • should contain at least one digit.

Input: A string.

Output: A bool.


is_acceptable_password('short') == False
is_acceptable_password('muchlonger') == False
is_acceptable_password('ashort') == False
is_acceptable_password('muchlonger5') == True
is_acceptable_password('sh5') == False

How it’s used: For password verification form. Also it's good to learn how the task can be evaluated.