0

Password validation,. It is failing one testcase , what is the problem?

x=input() y,z=0,0 if len(x)<7: print('Weak') for i in (x): if i.isdigit(): y+=1 if(i=='!' or i=='@' or i=='#' or i=='

#x27; or i=='%' or i=='&' or i=='*'): z+=1 if y>=2 and z>=2: print('Strong') else: print('Weak')

18th Sep 2020, 8:41 AM
Jeevan Manjunath Naik
Jeevan Manjunath Naik - avatar
1 Respuesta