Light Mode
Dark Mode
Acceptable password II "muchlonger5" case

Hello, I'm using this function to solve the challenge but check fails at Test4/4

def is_acceptable_password(password: str) -> bool:

    for char in password:
        if char.isdigit():
            return len(password) > 6
    return False

Moreover even with this trick

def is_acceptable_password(password: str) -> bool:
    return True

I have the same response from checker with "Your result: False".

Attachment
  • bug
Created: Aug. 7, 2020, 1:02 p.m.
Updated: Aug. 9, 2020, 3:49 p.m.
0
16
User avatar
vasiapiramid