Snakes don’t have legs as they don’t need them; snakes will use their muscles to move, they do this by contracting their muscles, and they are fine without legs. However, it is believed that snakes once actually had legs but evolved, mutated and no longer required legs anymore. For some snakes like the python, you can still see the spurs in which their ancestors had legs, and this also gives the possibility that snakes will once again have legs if needed in the future.
Answered questions:
What are spurs?
Why do snakes have spurs?
What do spurs look like?
Which snakes have spurs?