example of something that has both kinetic and potential energy

A pendulum swinging back and forth is an example of something that possesses both kinetic and potential energy.

As the pendulum swings upward, it gains potential energy. At its highest point, all of the potential energy is converted into kinetic energy. As it swings back down, the potential energy decreases and the kinetic energy increases. At the lowest point of the swing, all of the potential energy is converted back into kinetic energy again. This cycle continues as the pendulum swings back and forth.