human
I'm a little confused about the difference between a crocodile and an alligator. What are the differences?
assistant
A crocodile is a member of the family Crocodylidae, while an alligator is part of the family Alligatoridae. Both families have similar physical characteristics, but they differ in their diets, habitat, and behavior. Crocodiles typically eat fish and amphibians, while alligators prefer to feed on mammals and birds. Crocodiles live in saltwater habitats, such as rivers and lakes, while alligators inhabit freshwater bodies like swamps and ponds. Finally, crocodiles tend to be more solitary animals, while alligators often form groups called "gangs" or "packs."