def is_acceptable_password(password: str) -> bool:
    cond1 = len(password) > 6
    cond2 = any(map(str.isdigit, password))
    if cond1 & cond2 == True:
        return True
    else:
        return False
In this code I do not understands how "str.isdigit" works. In my logic I need to write it like "password.isdigit", because I want to check whether the digit is in it, but only "str.isdigit" works.
