[lang-ref] ( immutable_list ) ( python )

def test_immutable_list():
    # tuple
    items_list  = ['A', 'B', 'C']
    items_tuple = ('A', 'B', 'C')

    items_list[0] = 'a' # passes

    with pytest.raises(TypeError):
        items_tuple[0] = 'a'  # cannot be modified