I need to write a while loop that iterates through an entire string, but skips all the C's in the string. My current code just runs forever, and I can't get any sort of traceback because of it.
Here's what I have right now:
DNA = 'GTTGATGTAGCTTATATAAAGCAAGGCACTGAAAATGCCTAGATGAGTCATAGACTCCATAAACAACAGGTTTGGTCCCGGC'
x = 0
Part2 = []
while(x < len(DNA)):
if DNA[x] != 'C':
Part2.append(DNA[x])
x = x + 1
else:
continue
print("Part 2: ", Part2)