By feeding pumpkin, tortoises will eat the seeds that contain a compound called ascucurbitacins which paralyse the worms by attacking their nervous system. This causes them to stop growing and eventually die. These seeds also contain several other worm-killing nutrients like flavonoids, palmitic, oleic and linoleic acids.