Task: Implement a Robust List/Tuple Type Checker in Python
Task: Implement a Robust List/Tuple Type Checker in Python: a task in Terminal-Lego-15k (Harbor dataset). Create a Python utility module that provides functions to check if an object is a list or tuple, but explicitly not a string. This is a common need in Python programming because strings are…
The task
Create a Python utility module that provides functions to check if an object is a list or tuple, but explicitly **not** a string. This is a common need in Python programming because strings are iterable, which can cause subtle bugs when a function expects a list/tuple but receives a string instead.
Part of PrimeIntellect/Terminal-Lego-15k.