Here, we utilize the built-in numpy function to do this.