reed_solomon.py
def convert_encoded_to_dna(encoded, transcoding):
    """
    converts encoded string to DNA string using transcoding list

    :param encoded: String
    :param transcoding: List[char]
    :return: String
    """
    dna_binary = ''
    for character in encoded:
        dna_binary += str(bin(ord(character)))[2:].zfill(8)
    return ''.join([transcoding[2*int(dna_binary[i]) + int(dna_binary[i+1])] for i in range(0, len(dna_binary) - 2, 2)])

    converts encoded string to DNA string using transcoding list

    :param encoded: String
    :param transcoding: List[char]
    :return: String
    
converts encoded string to DNA string using transcoding list
converts encoded string to DNA string using transcoding list
def convert_encoded_to_dna(encoded, transcoding):
    dna_binary = ''
    for character in encoded:
        dna_binary += str(bin(ord(character)))[2:].zfill(8)
    return ''.join([transcoding[2*int(dna_binary[i]) + int(dna_binary[i+1])] for i in range(0, len(dna_binary) - 2, 2)])
def convert_encoded_to_dna ( encoded , transcoding ) : dna_binary = '' for character in encoded : dna_binary += str ( bin ( ord ( character ) ) ) [ 2 : ] . zfill ( 8 ) return '' . join ( [ transcoding [ 2 * int ( dna_binary [ i ] ) + int ( dna_binary [ i + 1 ] ) ] for i in range ( 0 , len ( dna_binary ) - 2 , 2 ) ] )
converts encoded string to DNA string using transcoding list
converts encoded string to DNA string using transcoding list
"""
    converts encoded string to DNA string using transcoding list

    :param encoded: String
    :param transcoding: List[char]
    :return: String
    """
None
encoded
None
transcoding
None