Spaces:
Sleeping
Sleeping
| def validate_email(email): | |
| """ | |
| Validate an email address. Rules: | |
| - Must contain exactly one '@' symbol | |
| - Must have at least 1 character before the '@' | |
| - The part after '@' must contain a '.' with at least 1 char before and after it | |
| Returns True if valid, False otherwise. | |
| """ | |
| pass # TODO: Implement based on the rules above | |
| def validate_password(password): | |
| """ | |
| Validate a password. Rules: | |
| - At least 8 characters long | |
| - Contains at least one uppercase letter | |
| - Contains at least one lowercase letter | |
| - Contains at least one digit | |
| Returns True if valid, False otherwise. | |
| """ | |
| pass # TODO: Implement based on the rules above | |