Question: Python program to calculate number of days between two dates. The function looks like this: Python datetime.date(year, month, day) : The function returns date object
Python program to calculate number of days between two dates. The function looks like this:
Python datetime.date(year, month, day) :
The function returns date object with same year, month and day. All arguments are required. Arguments may be integers, in the following ranges:
MINYEAR <= year <= MAXYEAR
1 <= month <= 12
1 <= day <= number of days in the given month and year
If an argument outside those ranges is given, ValueError is raised.
NOTE: The smallest year number allowed in a date or datetime object. MINYEAR is 1.
The largest year number allowed in a date or datetime object. MAXYEAR is 9999.
Your answer should look something like this:
12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
