Check Collection Length At Least N
Validates that a student’s collection has at least N elements, optionally enforcing a collection type.
| Device Type |
|---|
| Jupyter |
Variables:
| Variable Name | Variable Description | Type | Required? | Default |
|---|---|---|---|---|
student_collection_variable_name | The name of the student’s collection variable (list, tuple, etc.). | str | Yes | |
n | The minimum number of elements expected. | int | Yes | |
collection_type | Optional: a Python type to enforce (e.g. 'list'). If omitted, the type is not enforced. | str | No |