Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started