Skip to main content

Check Collection Item Value At Index

Validates that the item at a given index matches an expected value (for lists, tuples, strings, etc.)

Device Type
Jupyter

Variables:

Variable NameVariable DescriptionTypeRequired?Default
student_sequence_nameThe student's collection variable (list, tuple, etc.)strYes
indexThe index or key to check in the collection.anyYes
expected_valueThe expected value at the specified index or key.anyYes
sequence_typeThe type of the collection (list, tuple, string, etc.).strYes

Examples: