| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | def is_acceptable_password(password: str) -> bool: |
||
| 2 | return len(password) > 6 |
||
| 3 | |||
| 4 | |||
| 5 | if __name__ == '__main__': |
||
| 6 | print("Example:") |
||
| 7 | print(is_acceptable_password('short')) |
||
| 8 | |||
| 9 | # These "asserts" are used for self-checking and not for an auto-testing |
||
| 10 | assert is_acceptable_password('short') == False |
||
| 11 | assert is_acceptable_password('muchlonger') == True |
||
| 12 | assert is_acceptable_password('ashort') == False |
||
| 13 | print("Coding complete? Click 'Check' to earn cool rewards!") |
||
| 14 |