1import datetime
2my_date = datetime.date.today() # if date is 01/01/2018
3year, week_num, day_of_week = my_date.isocalendar()
4print("Week #" + str(week_num) + " of year " + str(year))
1import datetime
2from dateutil.relativedelta import relativedelta
3
4week = 25
5year = 2021
6date = datetime.date(year, 1, 1) + relativedelta(weeks=+week)
7print(date)
8