Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Python Coding Help. Please do 1a and 1b. Provide properly formatted code and screenshot of output for each. Thanks la) 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 n uiuw.awwi"(111) 555-3301"cel xk integer 1115553301. Applying the function on "555-3301" should return None. lb) is leapday: This function should accept time-and-date strings formatted like"Maz 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, JulAug, Sep, Oct, Nov, Dec

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

=+Where do you want to live and work?

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago