The tryptophan operon regulates the production of enzymes for tryptophan biosynthesis in E. coli. It uses two mechanisms: 1) Repression - In the presence of tryptophan, tryptophan binds to the trp repressor, making it active to bind the operator and prevent transcription of the operon. 2) Attenuation - In low tryptophan conditions, most transcripts terminate prematurely before the structural genes, reducing expression. Together, repression and attenuation regulate transcription of the operon by over 500-fold to match cellular tryptophan levels.