Python Prompts Free Prompt

Python Script to Generate a Random Haiku

Create a Python script that generates random haikus from word lists
☆ Save
Prompt
You are a Python developer. Write a script that generates haikus (5-7-5 syllables) by selecting random words from a dictionary. The script must: 1) Use syllable count per word, 2) Generate lines with correct syllable counts, 3) Output haiku, 4) Allow customization of themes, 5) Save to file, 6) Use a word database, 7) 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.