Write a python function to Calculate the date of n days from the given date.


Topic: Write a python function to Calculate the date of n days from the given date.

Solution

from datetime import datetime, timedelta
def add_days(n, d = datetime.today()):
  return d + timedelta(n)



List all Python Programs