Question: Python Coding Help. Please do 1a and 1b. Provide properly formatted code and screenshot of output for each. Thanks 1a) phonenumber: This function should accept
Python Coding Help.
Please do 1a and 1b. Provide properly formatted code and screenshot of output for each. Thanks

1a) phonenumber: This function should accept strings of the format " (xxx) Xxx-xxxx", where each X is a number 0 to 9, and return an integer. Other input values should result in None. For example, applying the function phonenumber on " (111) 555-3301"should return the integer 1115553301. Applying the function on "555-3301" should return None 1b) is leapday: This function should accept time-and-date strings formatted like"May 8, 2009 1:09:59am" and return None if the date +time is invalid (that date and time did not exist or is not written in the proper format), False-as in this example-if the time does not fall on a leap day, or True if it does fall on a leap day-as in "Feb 29, 2000 12:00:00pm". The month codes are Jan, Feb, Mar, Apr, May, Jun, Jul Auq, Sep, Oct, Nov, De
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
