I have a big doubt in an exercise that I am not able to solve yet. I comment, I have a string, dna="ATGCGAGTTGATA"
, then I must find the position of the letters G
and C
. For this, what I have been doing is:
for base in dna:
if base == "G"
print dna.find("G")
continue
but this only returns the first position and not the other positions where G
is found. If someone can help me, I would really appreciate it.