Write a function that will take an email from the user as an input, check if the email is in correct format: 2. 2.1. Email Id (Text before the @ sign) with a length greater than 2. 2.2. @ sign 2.3. Valid domain (list of valid domains are: psut.edu.jo, hotmail.com, gmail.com) 2.5. The length of the email should not be greater than 20 characters. should be no spaces in the email at all. If any of the previous parts are missing, the script must notify the user with exactly which part is wrong. If all the parts are correct then the script must notify the user that it's a valid email address.
Write a function that will take an email from the user as an input, check if the email is in correct format: 2. 2.1. Email Id (Text before the @ sign) with a length greater than 2. 2.2. @ sign 2.3. Valid domain (list of valid domains are: psut.edu.jo, hotmail.com, gmail.com) 2.5. The length of the email should not be greater than 20 characters. should be no spaces in the email at all. If any of the previous parts are missing, the script must notify the user with exactly which part is wrong. If all the parts are correct then the script must notify the user that it's a valid email address.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 4PE: 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and...
Related questions
Question
Qustion number 2 please, in paython language.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning