I want to create a function that takes in a number and returns the {number} days prior to today, excluding weekends.
For example,
from datetime import date, timedelta
def get_date(days = 5):
today = date.today()
return today - timedelta(days)
when today is 2020-06-11, it should output 2020-06-04 (excluding 06-06 and 06-07).