Check Collection Length Greater Than N
Validates that a student’s collection (list, tuple, etc.) has a length strictly greater than N, optionally enforcing a specific collection type.
Variables:
| Variable Name | Variable Description | Type | Required? | Default |
|---|
student_collection_variable_name | The name of the student’s collection variable. | str | Yes | |
n | The length must be strictly greater than this integer. | int | Yes | |
collection_type | Optional: a Python type to enforce (e.g. 'list'). If not provided, only the length is checked. | str | No | |
Examples: