for aaa in range(4):
i=input()
so=0
if len(i)>7:
so+=1
if i!=i.lower():
so+=1
i=i.lower()
g=True
for k in i:
if 97>ord(k)or ord(k)>122:
g=False
so+=int(not g)
print("This password is",(["WEAK","ACCEPTABLE","GOOD","STRONG"])[so])
for aaa in range(4):
i=input()
so=0
if len(i)>7:
so+=1
if i!=i.lower():
so+=1
i=i.lower()
g=True
for k in i:
if 97>ord(k)or ord(k)>122:
g=False
so+=int(not g)
print("This password is",(["WEAK","ACCEPTABLE","GOOD","STRONG"])[so])
for aaa in range(4):
題目範例是4
但是實際資料不可能只有4
要改成能自動判斷是否還有輸入的程式才行
可以去看ZeroJudge首頁的使用手冊
那裏有教怎麼吃進輸入