PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import string as str
word=input()
punctuation=0
digits=0
for x in word:
if x in str.punctuation :
punctuation+=1
if x in str.digits:
digits+=1
if punctuation >=2 and digits >=2 and len(word)>=7:
print("Strong")
else:
print("Weak")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск