NumPy Array Indexing and Slicing

Data Science with Python 6 min min read Updated: Mar 07, 2026 Beginner
NumPy Array Indexing and Slicing
Beginner Topic 4 of 10

Indexing Arrays

python import numpy as np arr = np.array([10,20,30,40]) print(arr[1])

Slicing

python print(arr[1:3])

Next Tutorial: Multidimensional Arrays

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators