why do the stars and the constellations in the sky appeared to change positions throughout the night and throughout the year

The stars and constellations appear to change positions throughout the night and throughout the year due to Earth's rotation on its axis and its orbit around the Sun.

As Earth rotates on its axis, different parts of the sky come into view, causing the stars and constellations to appear to move across the sky. This rotation happens once every 24 hours, leading to the apparent movement of the stars from east to west.

In addition, as Earth orbits around the Sun, the position of the stars and constellations relative to us changes over time. This is why different constellations are visible during different seasons of the year. As Earth moves along its orbit, the angle from which we view the stars changes, causing them to appear to shift in the sky.

These combined motions of Earth's rotation and orbit give rise to the apparent movement of the stars and constellations in the night sky.