# 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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter