Iterating through a range of dates in Python
I have the following code to do this, but how can I do it better? Right now I think it’s better than nested loops, but it starts to get Perl-one-linerish when you have a generator in a list comprehension. day_count = (end_date – start_date).days + 1 for single_date in [d for d in (start_date + … Read more