From d4b97579737020ed51053d872a5c6877a8273034 Mon Sep 17 00:00:00 2001 From: LeoKnaw <43099122+LeoKnaw@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:23:02 +0100 Subject: [PATCH] Simplification of code This is a simplification of line 44-48 and removal of unwanted comments --- src/VerifyEmailAddress.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/VerifyEmailAddress.py b/src/VerifyEmailAddress.py index 07c350d..bbc50db 100644 --- a/src/VerifyEmailAddress.py +++ b/src/VerifyEmailAddress.py @@ -40,11 +40,13 @@ code, message = server.rcpt(str(addressToVerify)) server.quit() -#print(code) -#print(message) # Assume SMTP response 250 is success -if code == 250: - print('Success') -else: - print('Bad') +# if code == 250: +# print('Success') +# else: +# print('Bad') + + +status = "Success" if code == 250 else "Bad" +print(status)