import string
a = "pass123#a"
avg = 0
avg += len(a) >= 8
for i in a:
    if a.isdigit():
        avg += 1
        break
for i in a:
    if i in string.punctuation:
        avg += 1
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: