Question: Python Code: (No Beautiful Soup, Only basic Regular Expressions) Phone numbers can be XXX-XXXX or have an optional area code, (XXX) XXX-XXXX. Use Regular Expressions

Python Code: (No Beautiful Soup, Only basic Regular Expressions)

Phone numbers can be XXX-XXXX or have an optional area code, (XXX) XXX-XXXX. Use Regular Expressions to parse the US Representatives page links to an external site. and retrieve all phone numbers on it. https://www.house.gov/representatives/Links to an external site.

Sample program output. Your program should display all 882 numbers

>>>

Found the following 882 phone numbers: (202) 225-4931 (202) 225-2901 (202) 225-3261 (202) 225-4876 (202) 225-4801 (202) 225-492

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!