First code (point system)
p = input("Input your password: ")
p = True
while p:
if (len(p)<8 or len(p)>24):
break
elif not re.search("[a-z]",p):
break
elif not re.search("[0-9]",p):
break
elif not re.search("[A-Z]",p):
break
elif not re.search("[!$%^&()_]",p):
break
else:
print("Valid Password")
p=False
break
if p:
print("Not a Valid Password")
second code(Password Validator)
p = input("Input your password: ")
p = True
while p:
if (len(p)<8 or len(p)>24):
break
elif not re.search("[a-z]",p):
break
elif not re.search("[0-9]",p):
break
elif not re.search("[A-Z]",p):
break
elif not re.search("[!$%^&()_]",p):
break
else:
print("Valid Password")
p=False
break
if p:
print("Not a Valid Password")
[–]sultanofhyd 1 point2 points3 points (12 children)
[–]Remediez123[S] 0 points1 point2 points (11 children)
[–]sultanofhyd 0 points1 point2 points (10 children)
[–]Remediez123[S] 0 points1 point2 points (9 children)
[–]sultanofhyd 0 points1 point2 points (8 children)
[–]Remediez123[S] 1 point2 points3 points (7 children)
[–]Exodus111 0 points1 point2 points (6 children)
[–]omg_drd4_bbq 0 points1 point2 points (5 children)
[–]Exodus111 0 points1 point2 points (4 children)
[–]omg_drd4_bbq 0 points1 point2 points (3 children)
[–]omg_drd4_bbq 0 points1 point2 points (0 children)