The tapeworm is a parasitic flatworm that lives in the small intestines of humans. It attaches to the gut wall using hooks and suckers. New segments are produced at the neck and older segments are pushed to the back and grow larger. The tapeworm has a flat body made of up to 1000 segments, each containing 50,000 eggs. It absorbs nutrients from the host's intestines, causing harm like gut blockage and weight loss, while gaining benefits like a food supply and shelter. The tapeworm has a two-host lifecycle alternating between pigs and humans, with pigs acting as an intermediate host where the parasite forms cysts in muscle tissue.