1
2
3
4
>>> from Bio.Seq import Seq
>>> mRNA = Seq("TATGAAAGT")
>>> mRNA.translate()
Seq('YES', ExtendedIUPACProtein())

Why Biopython?

xkcd: Python

http://xkcd.com/353/

Ref.