Python Prompts Free Prompt

Python Script to Generate a Random Password with Constraints

Create a Python script that generates passwords meeting specific criteria (uppercase, lowercase, digits, special)
☆ Save
Prompt
You are a Python developer. Write a script that generates a random password that meets given complexity requirements. The script must: 1) Accept length, and flags for including uppercase, lowercase, digits, special chars, 2) Ensure at least one of each selected type, 3) Generate multiple passwords, 4) Check strength, 5) Output to file, 6) Provide a GUI (optional), 7) Copy to clipboard. 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.