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 ge
from datetime import date,timedelta delta = timedelta(days=1) start = date(2020,1,1) end=date(2020,9,1) loop_date = start while loop_date<=end: print(loop_date) loop_date+=delta