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

11th Jan 2020, 8:26 PM
Kacper Durak
6 Respuestas
+ 2
There specified for password at least 7 characters. So length must be >=7. Length 7 is also accepted.
11th Jan 2020, 8:41 PM
Jayakrishna 🇮🇳
+ 2
Line 13 ...<7 Line 33 ...>=7
11th Jan 2020, 8:42 PM
Mihai Apostol
Mihai Apostol - avatar
0
Mihai Apostol Jayakrishna I did exactly that but it still fails
11th Jan 2020, 8:44 PM
Kacper Durak
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.....
11th Jan 2020, 8:57 PM
Jayakrishna 🇮🇳
0
Jayakrishna thank you so much for your help I wouldn't have thought of putting that in another loop
11th Jan 2020, 9:07 PM
Kacper Durak
12th Jan 2020, 5:16 PM
George Kasembeli
George Kasembeli - avatar