SLICE¶
Description¶
SLICE takes a string (or list), a start index, and an end index, and returns the portion between those positions. The start index is inclusive and the end index is exclusive. Indexing starts at 0.
Example¶
This returns "World".
Example with a list¶
This returns [2, 3, 4].