first
Return the first item in a list.
def first(
value: sequence
) - > any
Return the first item in a list.
Parameters
| Name | Type | Description |
|---|---|---|
| value | sequence | The list or sequence from which to retrieve the first item. |
Returns
| Type | Description |
|---|---|
any | The first element of the sequence if it exists, otherwise an empty string. |