0

n = input() a = 0 b = 0 for i in n: if i in "1,2,3,4,5,6,7,8,9": a = a+1 if i in "'!', '@', '#', '
#x27;, '%', '&',

Why it is failed in test case 4

30th Jun 2021, 8:25 AM
Shahir
Shahir - avatar
4 odpowiedzi
+ 5
Shaik.Shahir , i suppose that you try to solve the "password validator", but your code seems like incomplete. to get an idea why the issue appears, we need to see your complete code. put it in playground and then link it here. do not put the code directly in the text area. thanks!
30th Jun 2021, 9:53 AM
Lothar
Lothar - avatar
+ 3
And what is it ? Also did you even cared to look that question title allows limited characters only . Instead of posting code in question title use description for that and use question title for what it really is.
30th Jun 2021, 8:53 AM
Abhay
Abhay - avatar
+ 1
1.You did not used b variable. 2.instead of i in bla bla use i.isdigit()
30th Jun 2021, 8:57 AM
Shadoff
Shadoff - avatar
+ 1
Thanks
30th Jun 2021, 10:30 AM
Shahir
Shahir - avatar