Python Prompts Free Prompt

Python Script to Generate a Countdown Timer

Write a Python script that implements a countdown timer with alarm
☆ Save
Prompt
You are a Python developer. Write a script that counts down from a given time and plays a sound when done. The script must: 1) Accept minutes/seconds as argument, 2) Display countdown in console, 3) Update in place, 4) Play sound using playsound or winsound, 5) Allow pausing, 6) Provide a GUI using tkinter, 7) Log timer events. 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.