Introduction
In Python, we can access elements in a list using their index. Sometimes we may want to extract every nth
element from a list. In this challenge, you are tasked with writing a function that takes a list and an integer nth
as arguments and returns a new list containing every nth
element of the original list.