I wrote this code for the solution of password validation problem but it ain't no working properly.(python) edit : for some case | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I wrote this code for the solution of password validation problem but it ain't no working properly.(python) edit : for some case

pas = str(input()) a=0 b=0 c=0 lis = ['!', '@', '#', '

#x27;, '%', '&', '*'] for i in pas : try: if int(i) == int : a+=1 except: None if i in lis: b=b+1 c=c+1 if a>1 and b>1 and c>6 : print("Strong") else: print("Weak")

26th Mar 2020, 10:40 PM
Suku
Suku - avatar
1 Answer
+ 2
int(i) == int is always false. try: int (i) a+=1 except: None
26th Mar 2020, 11:21 PM
Kevin ★