mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update strings/is_valid_email_address.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
60ca06bfee
commit
bfec37ccfb
@ -114,4 +114,4 @@ if __name__ == "__main__":
|
||||
for email, valid in email_tests:
|
||||
is_valid = is_valid_email_address(email)
|
||||
assert is_valid == valid, f"{email} is {is_valid}"
|
||||
print(f"Email address {email} is {'not ' if is_valid else ''}valid")
|
||||
print(f"Email address {email} is {'not ' if not is_valid else ''}valid")
|
||||
|
Loading…
x
Reference in New Issue
Block a user