Created
June 18, 2023 16:39
-
-
Save UltiRequiem/798641e27a76399279da97b86207612d to your computer and use it in GitHub Desktop.
random file i found in my pc
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