- 1password OP CLI
- AWS CLI
- JQ
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 calendar | |
def count_weekends(year): | |
# Dictionary to hold the count of Saturdays and Sundays for each date | |
weekend_counts = {date: 0 for date in range(1, 32)} | |
# Process each month and each date in the month | |
for month in range(1, 13): | |
# Get the number of days in the month | |
num_days = calendar.monthrange(year, month)[1] |