Date range
Creates a list of dates between start
(inclusive) and end
(not inclusive).
- Use
datetime.timedelta.days
to get the days betweenstart
andend
. - Use
int()
to convert the result to an integer andrange()
to iterate over each day. - Use a list comprehension and
datetime.timedelta
to create a list ofdatetime.date
objects.