Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
450 B
2
Indexable
Never
def solve(passwords):
    passwords_list = [p.strip() for p in passwords.split(';')]
    def check_password(password):
        return len(password) >= 6 and any(c.isdigit() for c in password) and any(c.islower() for c in password) and any(c.isupper() for c in password)
    filtered_passwords = list(filter(check_password, passwords_list))
    if filtered_passwords:
        return ','.join(filtered_passwords)
    else:
        return 'empty result'