What is the difference between a list and a tuple in Python?
Asked in the Round 1 stage. Implement compare_list_tuple(values) for a list of integers. Return a dictionary describing each type's name, mutability, hashability, and the shared ordering and indexing behavior.
Input: values, a list of integers. Output: a dictionary with keys list_type, tuple_type, list_mutable, tuple_mutable, list_hashable, tuple_hashable, preserves_order, supports_indexing, and length.
def compare_list_tuple(values):