Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Datetime module in Python Write a program in python to return the following outputs using the python datetime module- 1. Current date and time 2.
Datetime module in Python Write a program in python to return the following outputs using the python datetime module- 1. Current date and time 2. Current year 3. Current Month 4. Print date after x days from today Example-Output,for 2021-01-09 and timedelta =50 Present date and time : 2021-01-09 02:16:24.720615 Present year: 2021 Present month : January Enter the No of days: 50 Date after x number of days: 2021-02-28 02:16:28.163210
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