import datetime as DT
import dateutil.relativedelta as REL
today = DT.date.today()
print(today)
rd = REL.relativedelta(days=1, weekday=REL.FR)
next_friday = today + rd
print(next_friday)
Как рассчитать следующую пятницу в Python?