''' Motif finding It's often useful to know if a given DNA sequence contains a specific motif: in Python, a variable should be `True` if the motif is found and `False` otherwise. DNA sequences are strings composed of the characters A, T, C, and G. A motif is a specific sequence of these characters. This is an example of how you can find this: ''' dna_sequence = "ATGCGATACGCTTGA" motif = "GCT" if motif in dna_sequence: found = True else: found = False print("Motif found:", found) ''' We might want to do this for multiple DNA sequences or multiple motifs, and different combinations of these. This is where functions come in: with functions, this logic can easily be applied to any combination of DNA sequences and motifs. ''' dna_sequence = "ATGCGATACGCTTGA" motif = "GCT" def find_motif(dna, motif): found = False # Your code here return found found = find_motif(dna_sequence, motif) print("Motif found:", found)