This program is written in Python and performs the following tasks:
Therefore, the output of this program is a list of 5 dates, starting from today and each consecutive date increasing by one day. The output format is in the default format of datetime objects.
import datetime base = datetime.datetime.today() for x in range(0, 5): print(base + datetime.timedelta(days=x))
2022-09-24 14:47:12.710649 2022-09-25 14:47:12.710649 2022-09-26 14:47:12.710649 2022-09-27 14:47:12.710649 2022-09-28 14:47:12.710649
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions