Biologists use the sequence of letters A, C, T and G to model genomes. A gene is a substring of a genome that begins after the three-character ATG and ends before the three-character TAG, TAA, and TGA. Therefore, the length of the genome string is a multiple of 3, and the gene does not include three characters such as ATG, TAG, TAA and TGA.
I'm a little confused by the last sentence. Take a genome as an example, ATGTTGATATATTAG. Is TTGATATAT a gene? When the definition says the gene doesn't include ATG, TAG, TAA or TGA, does this requirement apply for every three characters TTG ATA TAT or for any character TTGATATAT?
ps: I don't have too much biology background. I'm currently doing a programming assignment on gene. The definition is all that is given to me. So excuse me if my question sounds really dumb...