Answer:
def checkStrength(password):
lower = False
upper = False
digit = False
length = False
characters = False
chars = ["@", "*", "&", "$", "!"]
if len(password) < 8:
length = False
else:
length = True
for c in password:
if c.isdigit():
digit = True
if c.islower():
lower = True
if c.isupper():
upper = True
if c in chars:
characters = True
if lower and upper and digit and length and characters:
return "Strong"
else:
return "Weak"
print(checkStrength("Ab@134122102"))
end