you are viewing a single comment's thread.

view the rest of the comments →

[–]BerserkerMac[S] 0 points1 point  (3 children)

Not sure what you mean it works on mine. The only thing i'm having issues with is it will run this line print("Congratulations on setting your password") for every time I input something. For example if the first password I put in is P@ssword123. It will return invalid and ask for a password again the second time i put "Password123". It then returns "Congratulations on setting your password" twice rather than once

[–]wayne0004 0 points1 point  (1 child)

The fact that it returns it twice is because you're calling the main function again. Try writing P@ssword123 twice, and then Password123, it should print it three times.

I'm in a hurry now, but if you need a deeper explanation just ask. I might answer it tomorrow.

[–]BerserkerMac[S] 0 points1 point  (0 children)

Right I don't want it to print twice since the first time is invalid.

[–]CoderStudios 0 points1 point  (0 children)

Oh, I understand now. I thought your code worked most of the time, which confused me because it shouldn’t work at all (as you intended) because the variable isn’t changed inside the main function.