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
Show the last n days from today:
import datetime for i in range(0, 100): print((datetime.date.today() + datetime.timedelta(i)).isoformat())
Output:
2016-06-29 2016-06-30 2016-07-01 2016-07-02 2016-07-03 2016-07-04