import datetime
def getDays(day = None):
    outer = []
    if day == None:
        day = datetime.date.today()
    if day.strftime('%A') == "Monday":
        outer.append(day.strftime(str(day.strftime("%B")) + " " + str(day.day)))
        day = day + datetime.timedelta(days=1)
        outer.append(day.strftime(str(day.strftime("%B")) + " " + str(day.day)))
        day = day + datetime.timedelta(days=1)
        outer.append(day.strftime(str(day.strftime("%B")) + " " + str(day.day)))
        day = day + datetime.timedelta(days=1)
        outer.append(day.strftime(str(day.strftime("%B")) + " " + str(day.day)))
        day = day + datetime.timedelta(days=1)
        outer.append(day.strftime(str(day.strftime("%B")) + " " + str(day.day)))
        print(outer)
        return outer
    else:
        getDays(day = day + datetime.timedelta(days=1))
print(getDays())
In my second if statement, I return OUTER and print OUTER. Printing OUTER gives my desired output of ['August 10', 'August 11', 'August 12', 'August 13', 'August 14']
Returning OUTER returns None
Why can't I get it to return the same as what is printed?
 
    