Question: Python help needed: The re module (https://docs.python.org/3/library/re.html) is an abbreviation for the Regular Expression. They are used to find a string with a specific pattern.
Python help needed:
The re module (https://docs.python.org/3/library/re.html) is an abbreviation for the Regular Expression. They are used to find a string with a specific pattern. For example, the phone numbers in Toronto have 10 digits and they have this format xxx-yyy-wwww
Use the re module to check if the user has entered a valid phone number that follows the above mentioned pattern.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
