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]
  • 11
    def reverse_compliment(dna):
    
    2
        pass    
    
    2+
        dict = {"A": "T", "T":"A", "C":"G", "G":"C"}
    
    3+
        final = ""
    
    4+
        for char in dna:
    
    5+
            final += dict[char]
    
    6+
        
    
    7+
        return final[::-1]