Check Collection Is Not Empty
Validates that a student’s collection has at least 1 element, optionally enforcing a specific 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 | |
collection_type | Optional: a Python type to enforce (e.g. 'list'). If omitted, no type check is performed. | str | No |