PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pw = input()
spec_char = ('!', '@', '#', '$', '%', '&', '*')
cntr_spec_char = 0
cntr_number = 0
for i in pw :
if i in spec_char : cntr_spec_char += 1
elif i.isnumeric() : cntr_number += 1
if len(pw) >= 7 and cntr_spec_char >= 2 and cntr_number >= 2 :
print("Strong")
else :
print("Weak")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск