strings.dnaΒΆ
FunctionsΒΆ
|
Module ContentsΒΆ
- strings.dna.dna(dna: str) strΒΆ
https://en.wikipedia.org/wiki/DNA Returns the second side of a DNA strand
>>> dna("GCTA") 'CGAT' >>> dna("ATGC") 'TACG' >>> dna("CTGA") 'GACT' >>> dna("GFGG") Traceback (most recent call last): ... ValueError: Invalid Strand