Acceptable Password III Acceptable Password III
Elementary+
English

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, but cannot consist of just digits.

Input: A string.

Output: A bool.

Example:

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
is_acceptable_password('1234567') == False

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