Question
Assignment- Using Python Frist, write a function called firstProtein(inputSequence) that returns the first substring that begins with ATG . It should return the empty string
Assignment- Using Python
Frist, write a function called firstProtein(inputSequence) that returns the first substring that begins with "ATG" . It should return the empty string if "ATG" is not found Second, write a function call DNA() that prompts the user to enter a nucleotide sequence and prints out the first protein sequence.
Use the dictionary given below:
dict = {"TTT": "Phe", "TCT": "Ser", "TAT": "Tyr", "TGT": "Cys", "TTC": "Phe", "TCC": "Ser", "TAC": "Tyr", "TGC": "Cys", "TTA": "Leu", "TCA": "Ser", "TAA": "STOP", "TGA": "STOP", "TTG": "Leu", "TCG": "Ser", "TAG": "STOP", "CGT": "Trp", "CTT": "Leu", "CCT": "Pro", "CAT": "His", "CGC": "Arg", "CTC": "Leu", "CCC": "Pro", "CAC": "His", "CGC": "Arg", "CTA": "Leu", "CCA": "Pro", "CAA": "Gln", "CGA": "Arg", "CTG": "Leu", "CCG": "Pro", "CAG": "Gln", "CGG": "Arg", "ATT": "Ile", "ACT": "Thr", "AAT": "Asn", "AGT": "Ser", "ATC": "Ile", "ACC": "Thr", "AAC": "Asn", "AGC": "Ser", "ATA": "Ile", "ACA": "Thr", "AAA": "Lys", "AGA": "Arg", "ATG": "Met", "ACG": "Thr", "AAG": "Lys", "AGG": "Arg", "GTT": "Val", "GCT": "Ala", "GAT": "Asp", "GGT": "Gly", "GTC": "Val", "GCC": "Ala", "GAC": "Asp", "GGC": "Gly", "GTA": "Val", "GCA": "Ala", "GAA": "Glu", "GGA": "Gly", "GTC": "Val", "GCG": "Ala", "GAG": "Glu", "GGG": "Gly"}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started