Question: Modify the phone _ validator.py program given in Unit 5 to validate phone numbers of the form 1 - ( ### ) ### - ####

Modify the phone_validator.py program given in Unit 5 to validate phone numbers of the form 1-(###)###-####. If the phone number is in this form the program should print Valid otherwise it should print Invalid. Below are two examples of how your program should run with different inputs:
Enter number as ### ###-####:916555-1212 Valid
Enter number as ### ###-####:530555-SPAM Invalid
 Modify the phone_validator.py program given in Unit 5 to validate phone

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!