For humans and most other mammals, sex is a question is chromosomes. Two X chromsomes makes us female while an X and a Y makes us male. Birds use a similar but reversed system, where males are ZZ and females are ZW. But for reptiles, including crocodiles, turtles and many lizards, sex is determined not by genes, but by temperature.