Array Tail

Get the last n elements of an array.

Code

General
arr[-n:]

Parameters

Array

Number of elements

Server

More Python Snippets