Learn about this topic in these articles:

characteristics

Most pythons are terrestrial to semiarboreal, and a few, such as the
green tree python (
Morelia viridis) of Australia and New Guinea, are strongly arboreal. Terrestrial pythons are regularly found near water and are proficient swimmers, but they hunt and eat almost exclusively on land. Larger pythons prey mainly on mammals and birds; smaller species also eat amphibians and...