+ 3
I tried a coding challenge i.e. password validator but I'm having few issues with it Help! EDIT : SOLVED!
https://code.sololearn.com/c4Ldpij5zV9l/?ref=app Here is it. The program doesn't output anything when wrong password is entered.. Works perfectly fine with correct password. I just want it to print "The password is invalid in case of wrong password" rather then just giving no output! EDIT : SOLVED BY ~swim~
28 Réponses
+ 1
~ swim ~ Thanks
0
Frenchtoast
elif is not gonna work in this case I guess..as we need the program to meet a few number of conditions not only 1.
0
~ swim ~ so I should basically provide a else statement with all if statements?
0
~ swim ~ not working
0
~ swim ~ wait lemme update the code
0
~ swim ~ have a look now
https://code.sololearn.com/c4Ldpij5zV9l/?ref=app
0
Your "in"s are messed up. You are importing functions, not strings to run through.
0
Frenchtoast
Lemme try it
0
Frenchtoast thats not the case it used to work completely fine before putting the else statements just it was unable to output the condition where it fails... It just leaves the output empty
0
Works fine for the valid cases
0
I got that answer and read it.
~ swim ~
0
If you are talking about the one in which you defined valid = True
0
That doesn't worked.. even that codes gives out Invalid for a valid input
~ swim ~
0
Idk maybe something wrong with app.. I can't see it either now.. but when I clicked it for the first time from notifications I was able to read it
0
Maybe you can save them as code and then share the link
0
I was doing it for last 1 hour before coming here for help... Sure is a trick one..
0
Frenchtoast read that bro. But rather then knowing there way I just wanna know where am I making mistake.... Learning from your own mistake is beauty of coding!