PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
password = input("")
sp_count = 0
num_count = 0
if len(password) >= 7:
for c in password:
ascii_num = ord(c)
if c == "!" or c == "@" or c == "#" or c == "$" or c == "%" or c == "&" or c == "*":
sp_count += 1
if ascii_num <=57 and ascii_num >=48:
num_count += 1
else:
continue
if sp_count >= 2 and num_count >= 2:
print("Strong")
else:
print("Weak")
else:
print("Weak")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск