Python holidays package: Find the date of Thanksgiving

Python holidays package: Find the date of Thanksgiving

Tomorrow is Thanksgiving in the US. Use the “holidays” package to calculate its date in Python:

import holidays
us_holidays = holidays.US(years=2026)
us_holidays['2026-11-26'] # 'Thanksgiving Day'
us_holidays.get_named('Thanksgiving Day') # [datetime.date(2026, 11, 26)]