Date Range Function In Python For Loops