Python Prompts Free Prompt

Python Script to Generate a Calendar for a Year

Create a Python script that generates a printable calendar for a given year
☆ Save
Prompt
You are a Python developer. Write a script that uses the calendar module to generate a calendar for a specified year. The script must: 1) Accept year, 2) Output to console in text format, 3) Generate HTML calendar, 4) Save to file, 5) Highlight weekends, 6) Add holidays (optional), 7) Provide options for starting day (Monday/Sunday). Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.