Alternative content
def find_repeats(sequence, min_repeat_length=3):
repeats = []
for i in range(len(sequence) - min_repeat_length + 1):
substring = sequence[i:i+min_repeat_length]
if sequence.count(substring) > 1 and substring not in repeats:
repeats.append(substring)
return repeats
# Example usage
genome_sequence = "ATCGATCGATCGATCG"
result = find_repeats(genome_sequence)
print("Repeats found:", result)