PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
p = input()
count = 0
i = 0 # has to be outside the loop
for x in p:
#if x == '!' or '@' or '#' or '$' or '%' or '&' or '*':
if x in "! @ # $ % & *": # easier to read and understand
count += 1
#i = 0 # has to be outside the loop
if x.isdigit(): # should be like this
i+=1
if count >= 2 and i >= 2 and len(p) >= 7: # already mentioned by John Wells
print('Strong')
else:
print('Weak')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run