0
Password Validator failing on case 7
Ok so I wrote this code for the password validator challenge and everything was going fine but I noticed that it was failing on case 7 for some unknown reason. Can anyone tell me why isn't it working properly? https://code.sololearn.com/c9f1lZp2SC03/?ref=app
6 Respuestas
+ 2
There specified for password at least 7 characters. So length must be >=7.
Length 7 is also accepted.
+ 2
Line 13 ...<7
Line 33 ...>=7
0
Mihai Apostol Jayakrishna I did exactly that but it still fails
0
Kacper Durak Yes. Also your program checking numOfNums is misleading.. Check out in that... Write logic for that in separate loop if needed... It simplifys you.....
0
Jayakrishna thank you so much for your help I wouldn't have thought of putting that in another loop
0
What about this one
https://code.sololearn.com/c61Jn2xs0eBM/?ref=app