Question: 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
Get step-by-step solutions from verified subject matter experts
