In alligators, the temperature of an egg as it develops determines the sex of its inhabitant: low temperatures create females, high temps make males. The same is true for tortoises, but the outcomes are reversed—cool eggs produce males, warm ones produce females. And in crocodiles and snapping turtles, intermediate temperatures produce males, while either extreme produces females.