PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pw = input()
spec_char = ('!', '@', '#', '$', '%', '&', '*')
cntr_spec_char = 0
for i in spec_char :
if pw.find(i) != -1 : cntr_spec_char += 1
cntr_number = 0
for i in pw :
if 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
Запуск