using python
Write a program that prompts the user for a DNA sequence andtranslates the DNA into protein. Please see below for the codontable to use. Thus, you will have to determine how to split the DNAsequence into codons, look up the amino acid residue for eachcodon, and append all the amino acids to give a protein. Someprogram requirements: 1. When the codon doesn’t code for anything(e.g., stop codon), use “*”. 2. If the sequence length is not amultiple of 3, ignore the extra bases at the end. 3. If thesequence contains ambiguous codes (i.e., unknown bases), use “X”.Test your program with a few interesting test cases. The followingis a dictionary which represents the genetic code. The keys arecodons and the values are amino acid residues. A list of stopcodons is also provided. gencode = { ‘TTT’:’F’, ‘TTC’:’F’,’TTA’:’L’, ‘TTG’:’L’, ‘TCT’:’S’, ‘TCC’:’S’, ‘TCA’:’S’, ‘TCG’:’S’,’TAT’:’Y’, ‘TAC’:’Y’, ‘TGT’:’C’, ‘TGC’:’C’, ‘TGG’:’W’, ‘CTT’:’L’,’CTC’:’L’, ‘CTA’:’L’, ‘CTG’:’L’, ‘CCT’:’P’, ‘CCC’:’P’, ‘CCA’:’P’,’CCG’:’P’, ‘CAT’:’H’, ‘CAC’:’H’, ‘CAA’:’Q’, ‘CAG’:’Q’, ‘CGT’:’R’,’CGC’:’R’, ‘CGA’:’R’, ‘CGG’:’R’, ‘ATT’:’I’, ‘ATC’:’I’, ‘ATA’:’I’,’ATG’:’M’, ‘ACT’:’T’, ‘ACC’:’T’, ‘ACA’:’T’, ‘ACG’:’T’, ‘AAT’:’N’,’AAC’:’N’, ‘AAA’:’K’, ‘AAG’:’K’, ‘AGT’:’S’, ‘AGC’:’S’, ‘AGA’:’R’,’AGG’:’R’, ‘GTT’:’V’, ‘GTC’:’V’, ‘GTA’:’V’, ‘GTG’:’V’, ‘GCT’:’A’,’GCC’:’A’, ‘GCA’:’A’, ‘GCG’:’A’, ‘GAT’:’D’, ‘GAC’:’D’, ‘GAA’:’E’,’GAG’:’E’, ‘GGT’:’G’, ‘GGC’:’G’, ‘GGA’:’G’, ‘GGG’:’G’} stop_codons= [‘TAA’, ‘TAG’, ‘TGA’]
Expert Answer
Answer to using python Write a program that prompts the user for a DNA sequence and translates the DNA into protein. Please see be…