Created
February 18, 2023 12:09
-
-
Save UltiRequiem/fc614b8cedd7760ad5094f3164ce94f3 to your computer and use it in GitHub Desktop.
get all days of the year cool format productivity schedule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import calendar | |
YEAR = 2023 | |
month = 2 | |
for _ in range(11): | |
num_days = calendar.monthrange(YEAR, month)[1] | |
days = [datetime.date(YEAR, month, day) for day in range(1, num_days + 1)] | |
for day in days: | |
print(day.strftime("%A %d")) | |
month += 1 | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment