def test_index(self):
        assert evalpy('[1,2,3,4,5,3].index(2)') == '1'
        assert evalpy('[1,2,3,4,5,3].index(3)') == '2'
        assert evalpy('try:\n  [1,2,3,4,5,3].index(9);\nexcept Exception as e:\n  e') in 'ValueError'
        assert evalpy('[1,2,3,4,5,3].index(3, 4)') == '5'
        assert evalpy('[1,2,3,4,5,3].index(3, -2)') == '5'
        assert evalpy('[1,2,3,4,5,3].index(3, 0, -2)') == '2'
        
        assert evalpy('a=[1,(2,3),4, (2,3), 5]; a.index((2,3))') == '1'
        assert evalpy('a=[1,(2,3),4, (2,3), 5]; a.index((2,3),2)') == '3'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestListMethods.test_index/swapped operands of `in`