Reverse Complement easy
biopython

Write a function solution(dna) that returns the reverse complement of a DNA sequence using Biopython.

Biopython's Bio.Seq.Seq object has a reverse_complement() method. The complement of A is T, C is G, G is C, T is A, and the result is reversed.

Example

solution("AAAACCCGGT")  -> "ACCGGGTTTT"

Starter hint

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