#!/usr/bin/python

complement = {
    'A' : 'T',
    'C' : 'G',
    'G' : 'C',
    'T' : 'A',
}

complement['A']

def reverse_complement(dna):
    list = [ complement[nucleo] for nucleo in dna]
    list = reversed(list)

    return "".join(list)

dna = "ACACGATCGGGACTTACG"
print("dna=",dna)

rc = reverse_complement(dna)
print("rc= ",rc)

418e2bc65bbfaba4528f95fcdf70dfc855775bab
<mask token>

<mask token>


def reverse_complement(dna):
    list = [complement[nucleo] for nucleo in dna]
    list = reversed(list)
    return ''.join(list)


<mask token>

<mask token>
complement['A']


def reverse_complement(dna):
    list = [complement[nucleo] for nucleo in dna]
    list = reversed(list)
    return ''.join(list)


<mask token>
print('dna=', dna)
<mask token>
print('rc= ', rc)

complement = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'}
complement['A']


def reverse_complement(dna):
    list = [complement[nucleo] for nucleo in dna]
    list = reversed(list)
    return ''.join(list)


dna = 'ACACGATCGGGACTTACG'
print('dna=', dna)
rc = reverse_complement(dna)
print('rc= ', rc)

#!/usr/bin/python

complement = {
    'A' : 'T',
    'C' : 'G',
    'G' : 'C',
    'T' : 'A',
}

complement['A']

def reverse_complement(dna):
    list = [ complement[nucleo] for nucleo in dna]
    list = reversed(list)

    return "".join(list)

dna = "ACACGATCGGGACTTACG"
print("dna=",dna)

rc = reverse_complement(dna)
print("rc= ",rc)
