Python Prompts Free Prompt

Python Script to Generate a Random DNA Sequence

Create a Python script that generates random DNA sequences for bioinformatics
☆ Save
Prompt
You are a Python developer. Write a script that generates random DNA sequences of a given length. The script must: 1) Accept length, 2) Generate random nucleotides (A, T, C, G), 3) Output in FASTA format, 4) Allow GC content control, 5) Generate multiple sequences, 6) Save to file, 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.