Skip to content

Commit 2c2e41d

Browse files
authored
Update README.md
1 parent 436732c commit 2c2e41d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/37-validity-of-password/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ A website requires the users to input a username and password to register. Write
1111
5. Minimum length of password: 6.
1212
6. Maximum length of password: 12.
1313

14-
Your program should accept a sequence of comma-separated passwords and check them according to the above criteria. Passwords that match the criteria are to be printed, each separated by a comma.
14+
Your program should accept a password and verify it according to the previous criteria. If the password is successfully validated, the function returns the following string `"Valid password"`. Otherwise, it returns `"Invalid password. Please try again."`.
1515

1616
## 📎 Example input:
1717

1818
```py
19-
valid_password("ABd1234@1,a F1#,2w3E*,2We3345")
19+
valid_password("ABd1234@1")
2020
```
2121

2222
## 📎 Example output:
2323

2424
```text
25-
ABd1234@1
25+
Valid password
2626
```
2727

2828
## 💡 Hints:

0 commit comments

Comments
 (0)