0

Code in "line 15" is not working why? I tried to add special characters and the output is invalid syntax for special characters

https://code.sololearn.com/cRYshk5Cjgcm/?ref=app

13th Dec 2019, 3:02 PM
Somil Khandelwal
5 odpowiedzi
+ 1
The condition doesn't make any sense. To make the condition true, the length of password must be smaller than 5 and greater than 10. It's impossible.
13th Dec 2019, 3:24 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
Somil Khandelwal it's because your condition is wrong. You're giving the wrong output for the right input. You should check if the password is bigger than 10, ans smaller than 5 (in terms of lenght), and not the opposite.
13th Dec 2019, 4:17 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
I changed the code but still not working bro
13th Dec 2019, 3:38 PM
Somil Khandelwal
0
It seems to be working fine for me. Could you give more info about what you want to achieve ? Also, try to give some examples of expected output.
13th Dec 2019, 4:03 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Example If the password lengt his less than 5 and greater than 10 Then the output is Min length 5 max length 10
13th Dec 2019, 4:07 PM
Somil Khandelwal