Question: in python please Given the day, month and year of one date in variables d1,m1 and y1 respectively where all of these are numbers (for

in python please
in python please Given the day, month and year of one date

Given the day, month and year of one date in variables d1,m1 and y1 respectively where all of these are numbers (for example, d1=20,m1=12,y1=2022 ), and similarly of another date in variables d2, m2 and y2 respectively. The months are represented by their numerical values, 1 for January, 2 for February, etc. Assume that both the dates are valid dates. Write code to print which date comes earlier - first date or the second date. In case they are exactly the same date then the code should print that the two dates are the same

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!