Dec-02-2020, 12:02 AM
You did not do what I suggested. More like
def filter_seq(dna): seek = 'ACGT' filtered = '' for nucleotide in dna: How would you check if the nucleotide is in seek? If it is, then add nucleotide to filtered return filtered dna = 'ATATGCTGCNATATGCAC' print(filter_seq(dna))Do the part in the middle properly and it will work.