Array Head

Get the first n elements of an array.

Code

General
arr[:n]

Parameters

Array

Number of elements

Server

More Python Snippets