diff --git a/Address Validator/AddressValidator.py b/Address Validator/AddressValidator.py index 0dc49be..a3a209f 100644 --- a/Address Validator/AddressValidator.py +++ b/Address Validator/AddressValidator.py @@ -1,12 +1,21 @@ +# email has contain atleast one "." and only one "@" +# Email has not contain spaces + + def addressVal(address): dot = address.find(".") at = address.find("@") - if (dot == -1): - print("Invalid") - elif (at == -1): - print("Invalid") + at_count = address.count("@") + + if ( + dot >=1 + and at > 0 + and at_count == 1 + and " " not in address + and address.endswith("@gmail.com")): + print("Valid Email") else: - print("Valid") + print("invalid Email") print("This program will decide if your input is a valid email address") while(True): diff --git a/NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744 b/NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744 new file mode 100644 index 0000000..e69de29 diff --git a/NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744: Extragalactic Close-Up.mp3 b/NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744: Extragalactic Close-Up.mp3 deleted file mode 100644 index f5611fc..0000000 Binary files a/NASA_Image_Extraction/Astro_Images/2022-11-25_NGC 6744: Extragalactic Close-Up.mp3 and /dev/null differ