Challenge: Find Conserved Motifs
Task
Swipe to start coding
Write a Python function that finds all positions of a given motif in a DNA sequence string.
- For the string
sequence, search for all start indices wheremotifoccurs (use 1-based indexing: the first position is 1). - Return a list of positions where the motif occurs in the sequence.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 6.25
Challenge: Find Conserved Motifs
Swipe to show menu
Task
Swipe to start coding
Write a Python function that finds all positions of a given motif in a DNA sequence string.
- For the string
sequence, search for all start indices wheremotifoccurs (use 1-based indexing: the first position is 1). - Return a list of positions where the motif occurs in the sequence.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 4
single