At the bottom of the viewport, hit the button on the right.

The button on the left will just render a single frame of the viewport. Where as the button on the right will render the entire animation.
This type of viewport rendering is all you will need for all the animation exercises. (no actual ‘rendering’ required)