Ad
Code
Diff
  • def reverse_compliment(dna):
        dict = {"A": "T", "T":"A", "C":"G", "G":"C"}
        final = ""
        for char in dna:
            final += dict[char]
        
        return final[::-1]
    • def reverse_compliment(dna):
    • pass
    • dict = {"A": "T", "T":"A", "C":"G", "G":"C"}
    • final = ""
    • for char in dna:
    • final += dict[char]
    • return final[::-1]