Question: How would you script the below into python code? 2) When taking data from the user, some validations (such as valid email address, valid phone
How would you script the below into python code?

2) When taking data from the user, some validations (such as valid email address, valid phone number, etc.) must be performed. Write a function that take a string and return "email" if it is a valid email address, "phone" if it is a valid phone number, "number" if it is a valid numeric data, and "date" if it is a valid date. You're to decide which date format and phone number your function will be validating
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
