Conditions

PHOTO EMBED

Tue Oct 11 2022 08:07:45 GMT+0000 (Coordinated Universal Time)

Saved by @Bird #python

 # Validate all conditions

    for eachChar in password:
        if eachChar in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
            upp = True
        elif eachChar in "abcdefghijklmnopqrstuvwxyz":
            low = True
        elif eachChar in "0123456789":
            num = True
        elif eachChar in "!@#$%^&*()_-=+/\';><,.>":
            spc = True
        else:
            continue
    if len("password") >= 8:
        cnt = True

    if upp and low and num and spc and cnt:
        return True
    else:
        return False
content_copyCOPY