Lists
Creating Lists
['apple', 'banana', 'cherry'] # List of strings
[1, 2, 3, 4, 5] # List of numbers
[] # Empty list
['text', 42, {'key': 'value'}] # Mixed typesAccessing List Elements
fruits = ['apple', 'banana', 'cherry']
fruits[0] # Returns 'apple'
fruits[2] # Returns 'cherry'List Manipulation
Adding Elements
APPEND([1, 2], 3) # Returns [1, 2, 3]
CONCAT([1, 2], [3, 4]) # Concatenation: [1, 2, 3, 4]Filtering
Transforming (Mapping)
Sorting and Reversing
Getting Unique Elements
Flattening Nested Lists
Useful List Functions
Function
Description
Example
Checking List Contents
List Operations on Aggregated Data
Last updated
Was this helpful?
