PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
password=input()
numeric_count= 0
special_count= 0
for char in password:
if char.isdigit():
numeric_count += 1
if char in "!@#$%^&*":
special_count += 1
if len(password) >=7 and numeric_count >1 and special_count >1:
print("Strong")
else:
print("Weak")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run