this is the script I am running
import datetime
# Get the current date
current_date = datetime.datetime.now()
# Initialize a counter
counter = 0
# Define the number of iterations
total_iterations = 730 # for 2 years
while counter < total_iterations:
# Calculate Date2 as Date1 - 15 days
date2 = current_date - datetime.timedelta(days=15)
# Print Date1 and Date2
print("Date1:", current_date.strftime("%Y-%m-%d"))
print("Date2:", date2.strftime("%Y-%m-%d"))
# Update Date1 for the next iteration
current_date = date2 - datetime.timedelta(days=1)
# Increment the counter
counter += 1
I have provide correct alligment to the script. Can someone help regarding this.