Acceptable Password I

Acceptable Password I

You are at the beginning of a password series. Every mission is based on the previous one. The missions that follow will become slightly more complex.

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

The verification condition is:

  • the length should be bigger than 6.

Input: A string (str).

Output: A logic value (bool).

Examples:

assert is_acceptable_password("short") == False
assert is_acceptable_password("muchlonger") == True
assert is_acceptable_password("ashort") == False

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

40