I want to be able to replace certain characters. The desired replacement order should be
A -> U, T -> A, G -> C, C -> G.
But for some reason, C does not get replaced with G. I've linked the code that I have so far.
v = "ATGC"
DNA = [v]
MRNA = []
for s in DNA:
MRNA.append(s.replace('A', 'U').replace('T', 'A').replace('C', 'G').replace('G', 'C'))
print(MRNA)