# Write a Python program to Generate k random dates between two other dates # Python3 code to demonstrate working of# Random K dates in Range# Using choices() + timedelta() + loopfrom datetime import date, timedeltafrom random import choices  # initializing dates ranges test_date1, test_date2 = date(2015, 6, 3), date(2015, 7, 1)  # printing dates print("The original range : " + str(test_date1) + " " + str(test_date2))  # initializing KK = 7  res_dates = [test_date1]  # loop to get each date till end datewhile test_date1 != test_date2:    test_date1 += timedelta(days=1)    res_dates.append(test_date1)  # random K dates from packres = choices(res_dates, k=K)  # printing print("K random dates in range : " + str(res))