# Write a Python program to Divide date range to N equal duration # Python3 code to demonstrate working of# Convert date range to N equal durations# Using loopimport datetime  # initializing datestest_date1 = datetime.datetime(1997, 1, 4)test_date2 = datetime.datetime(1997, 1, 30)               # printing original datesprint("The original date 1 is : " + str(test_date1))print("The original date 2 is : " + str(test_date2))  # initializing NN = 7  temp = []  # getting diff.diff = ( test_date2 - test_date1) // Nfor idx in range(0, N):          # computing new dates    temp.append((test_date1 + idx * diff))  # using strftime to convert to userfriendly # formatres = []for sub in temp:  res.append(sub.strftime("%Y/%m/%d %H:%M:%S"))  # printing resultprint("N equal duration dates : " + str(res))