Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago

Question

How to prepare washing soda from common salt?

Answered: 1 week ago