# Top Python SequenceIterator Methods

> The following Python functions take an integer argument `n` and produce result sequences of the top `n` elements as described in the table below:

> top_max( n ) | Return the top `n` maximum values in the object's sequence
> top_min( n ) | Return the top `n` minimum values in the object's sequence
> top_pos_max( n ) | Return the positions of the top `n` maximum values in the object's sequence
> top_pos_min( n ) | Return the positions of the top `n` minimum values in the object's sequence

> ## Example

> Following is an example code snippet demonstrating one of these functions:

>         cursor = con.cursor("Quote", "by_sym")
>         for quote in cursor:
>             ...
>             hi20Iterator = quote.close.top_max( 20 )

>             ...