Бихте ли ми казали, къде ми е грешката? Тествам я цял ден, но уви.. Judge дава 85 / 100.
Write a program that checks if a given password is valid. Password rules are:
- 6 – 10 characters (inclusive).
- Consists only of letters and digits.
- Have at least 2 digits.
If a password is valid, print Password is valid. If it is not valid, for every unfulfilled rule print a message:
- Password must be between 6 and 10 characters.
- Password must consist only of letters and digits.
- Password must have at least 2 digits.