PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
numbers =['0','1','2','3','4','5','6','7','8','9','0']
letters =['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
symbols= ['!', '@', '#', '$', '%', '&', '*']
password = str(input())
count_num=0
count_sym=0
count_len=0
if len(password)>=7:
count_len+=1
for word in password:
if word in numbers:
count_num +=1
elif word in symbols:
count_sym +=1
if count_num >=2 and count_sym >=2 and len(password)>=7:
print("Strong")
else :
print("Weak")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run