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?

How would you script the below into python code? 2) When taking

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!