Dev HelpersOpen library
← Back

List the weekdays in a week

List the weekdays in a week. A self-contained example using the Python standard library.

Open this example in the interactive library

Source code

from datetime import date, timedelta
start = date(2026, 10, 19)
print([(start + timedelta(days=i)).isoformat() for i in range(5)])

Sample output

['2026-10-19', '2026-10-20', '2026-10-21', '2026-10-22', '2026-10-23']