Translate DNA to Protein easy
biopython

Write a function solution(dna) that translates a DNA coding sequence into a protein string using Biopython.

Biopython's Bio.Seq.Seq object has a translate() method that converts a nucleotide sequence into the corresponding amino-acid sequence (one-letter codes), where stop codons become *.

Example

solution("ATGTTC")  -> "MF"

Starter hint

from Bio.Seq import Seq
solution.py
14px
📊 Test Results
Run your code to see test results here.