It consists of the gastrointestinal tract (gut), an extensive tube extending from the mouth to the anus, through which the swallowing, digestion, and assimilation of food and the elimination of waste products are accomplished.