How do we know how animals like snakes and whales looked in the past?

Answer :

Because they have fossils of the back in the past and you can still see them now