a = "Python2026!"
avg = 0
if len(a) <= 10:
avg+=2
if len(a) > 10 and len(a) <= 8:
avg+=1
r = 0
k = 0
h = 0
u = 0
o = 0
l = 0
for i in a:
if ((i >= 33 and i <= 47) or (i >= 58 and i <= 64) or (i >= 91 and i <= 95) or i == 96 or (i >= 123 and i <= 126)) and r == 0:
avg += 1
r = 1
if (i >= 48 and i <= 57) and k == 0:
k = 1
avg += 1
if (i >= 65 and i <= 90) and h == 0:
h = 1
avg += 1
if i > 0 and (i - 1) + 1 == i:
u += 1
if i > 0 and (i - 1) == i:
o += 1
if (u == 2 or o == 2) and l == 0:
l = 1
avg -= 1
print(avg)
To embed this project on your website, copy the following code and paste it into your website's HTML: