pos = 0
for eachChar in password:
if pos < pw_len - 2:
if eachChar == password[pos + 1] and eachChar == password[pos + 2]:
no_rpt = False
else:
pos += 1
if upp and low and num and spc and cnt and no_rpt:
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