Skip to main content

Check Collection Is Sorted

Validates that a sequence (list/tuple) is sorted in ascending order (or descending if specified).

Device Type
Jupyter

Variables:

Variable NameVariable DescriptionTypeRequired?Default
student_sequence_nameThe name of the sequence variable that the student is expected to create.strYes
ascendingWhether the sequence should be sorted in ascending (True) or descending (False) order.boolYes
sequence_typeThe type of the sequence (list, tuple, etc.).strYes

Examples: