Question: *PYTHON Create a program that outputs the complementary DNA string Deoxyribonucleic acid (DNA) is a chemical found in the nucleus of cells and carries the

*PYTHON

Create a program that outputs the complementary DNA string

Deoxyribonucleic acid (DNA) is a chemical found in the nucleus of cells and carries the "instructions" for the development and functioning of living organisms. If you want to know more http://en.wikipedia.org/wiki/DNA

In DNA strings, symbols "A" and "T" are complements of each other, as are the "C" and "G" symbols. Your program will be given the input of a string which as a sequence of characters represents one side of the DNA; you need to get the other complementary side. For instance, if input is ACGT your output should be TGCA

The following pseudocode describes one algorithm for this program (there are other ways, too).

Create a variable DNA that stores a string of DNA symbols Create a variable DNA_COMPLEMENT to store the complement of the DNA. Initialize it to a blank string.

FOR EACH letter IN DNA CHANGE A->T, T->A, C->G, G->C and add it to the DNA_COMPLEMENT string

PRINT DNA_COMPLEMENT string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!