{"submission_id":24086,"func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = maximum(l[1:])\n return l[0] if l[0] > maxi else maxi\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":9619,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":41825,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev.rstrip())","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":39634,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev.strip())","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":25576,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":22381,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":30666,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11676,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":21734,"func_code":"def reverse(a):\n rev = []\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n for i in range(len(a)):\n rev.append(a[len(a) - i - 1])\n return rev\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":947,"func_code":"def reverse(a):\n rev = []\n i = 0\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n for i in range(len(a)):\n rev.append(a[len(a) - i - 1])\n return rev\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":35613,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":24622,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":38930,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":31881,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":40522,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n j = 0\n i = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":15057,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":26332,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":37211,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":10625,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":11388,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":20830,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":35829,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":27306,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":31988,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":32699,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - 1 - i]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":42328,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":518,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":31082,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = len(a) - i - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = len(a) - i - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":36140,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":16672,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":39465,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":25940,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a[i] = a[len(a) - 1 - i]\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i += 1\n return b\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":42121,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":13956,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n func_reverse.swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":37723,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":16600,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":32086,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = j + 1\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":15432,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":26853,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":40900,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":14210,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":21091,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a):\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":7167,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":26262,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a):\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n if len(a) == 1:\n return a\n else:\n while i < len(a) \/ 2:\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":34696,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[len(a) - i]\n a[len(a) - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":4104,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":34278,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a):\n tmp = a[j - i - 1]\n a[j - i - 1] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a) \/ 2:\n tmp = a[j - i - 1]\n a[j - i - 1] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":6321,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":38521,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":9977,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":20857,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":18861,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":22250,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":29294,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":35714,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) and j != i:\n swap()\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) and j < i:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":10271,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":16990,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":4273,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":33110,"func_code":"def reverse(a, i):\n tmp = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[i]\n a[i] = tmp","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":41496,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":27843,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":2306,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":7077,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) and len(a) > 1:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2 and len(a) > 1:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":12,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":5061,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":26517,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":30774,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":20795,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":2943,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":38330,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":20419,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":25200,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":20414,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":20173,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":21707,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":40493,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a):\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":19652,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":24060,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":22751,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":4012,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":13539,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a):\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":35196,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":17586,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":2961,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":36169,"func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":32992,"func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":36268,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":17833,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":18393,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":8934,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) + 1\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":15107,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":13145,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":4854,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":31941,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":21669,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":24058,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":25857,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":20456,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":14727,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":24889,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i = i + 1\n return a\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":22145,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":13119,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":20782,"func_code":"def swap(a, i, j):\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n swap(a, i, j)","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":16720,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"6fb1b046-1d89-4162-8437-722d44e22f50","academic_year":2017} {"submission_id":14993,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","academic_year":2017} {"submission_id":30152,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","academic_year":2017} {"submission_id":26323,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":25670,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":5036,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":41303,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":28597,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":5498,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":2771,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":31092,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"09e5a143-ae3a-4611-8cfa-45d52e07b2c6","academic_year":2017} {"submission_id":30427,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":40170,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":7298,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"6fb1b046-1d89-4162-8437-722d44e22f50","academic_year":2017} {"submission_id":34427,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j + j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":1535,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":17254,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j + j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":4234,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":11366,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":6750,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 1\n while i < len(a):\n j = i + 1\n swap(a, i, j)\n i += 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i += 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":36012,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":553,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":9605,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":17744,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) - 1:\n j = i + 1\n swap(a, i, j)\n i += 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i += 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":31143,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":30936,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":36342,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":13345,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e446f262-2121-4c37-a09e-a856c55efaca","academic_year":2017} {"submission_id":34947,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":12060,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e446f262-2121-4c37-a09e-a856c55efaca","academic_year":2017} {"submission_id":38358,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = a[0]\n j = len(a) - 1\n while i < j:\n a = swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":13371,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":36621,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":1425,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = int(a[len(a) - i - 1])\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":37351,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":5788,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":20140,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n tmp = a[j]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":17853,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","academic_year":2017} {"submission_id":34004,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","academic_year":2017} {"submission_id":36122,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":3797,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":12752,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":15472,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":13484,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":28691,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1\n return a\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":41477,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1\n return a\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":40898,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1\n return a\n","user":"36685ead-53f8-40af-a908-4c048278dc6b","academic_year":2017} {"submission_id":547,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1\n return a\n","user":"36685ead-53f8-40af-a908-4c048278dc6b","academic_year":2017} {"submission_id":39819,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a):\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":9359,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":4453,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"05bf8435-64be-48cb-be81-139956827989","academic_year":2017} {"submission_id":30178,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"05bf8435-64be-48cb-be81-139956827989","academic_year":2017} {"submission_id":8437,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":30470,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":21856,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = a[0]\n j = len(a) - 1\n while i < j:\n a = swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":17782,"func_code":"def reverse(a):\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":17728,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":23086,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":32960,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":19315,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":13063,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":16967,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":41902,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":6648,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":10648,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":26090,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":2388,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":12726,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":5424,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":34046,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = a[len(a) - 1]\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":11219,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a \/ 2):\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":38068,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":14169,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":2110,"func_code":"def reverse(a):\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":8997,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":22867,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":7607,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","academic_year":2017} {"submission_id":42462,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","academic_year":2017} {"submission_id":32054,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":7666,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":13597,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","academic_year":2017} {"submission_id":11295,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","academic_year":2017} {"submission_id":32551,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":19539,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":15113,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":12312,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":39711,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n a[tmp] = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[tmp]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"536d6075-5a50-4346-89ff-5e21df057756","academic_year":2017} {"submission_id":21719,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":35405,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a = a + a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - i - 1])\n i = i + 1\n return b\n","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":38961,"func_code":"def reverse(a):\n i = 0\n t = []\n while i < len(a):\n t = t + a[len(a) - i - 1]\n i = i + 1\n return t","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n t = []\n while i < len(a):\n t.append(a[len(a) - i - 1])\n i = i + 1\n return t\n","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":24993,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":41948,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != [] and len(a) > 2:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n elif len(a) <= 2 and len(a) > 0:\n swap(a, i, j)\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != [] and len(a) > 2:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n elif len(a) <= 2 and len(a) > 0:\n swap(a, i, j)\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":13008,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(l):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":1004,"func_code":"def swap(a, i, j):\n tmp = i\n i = j\n j = tmp\n\n\ndef reverse(a):\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"825987dd-47a8-4023-b124-16b318935de3","academic_year":2017} {"submission_id":19480,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":6619,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":23108,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":1195,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":39886,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","academic_year":2017} {"submission_id":7733,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","academic_year":2017} {"submission_id":20634,"func_code":"def reverse(a):\n a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":20771,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":32940,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":1095,"func_code":"def reverse(a):\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":9155,"func_code":"def reverse(a):\n a[::-1]\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":36535,"func_code":"def reverse(a):\n a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"0964a543-93db-460b-a0c5-d0c94fea250f","academic_year":2017} {"submission_id":5042,"func_code":"def reverse(a):\n a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"0964a543-93db-460b-a0c5-d0c94fea250f","academic_year":2017} {"submission_id":15424,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":20546,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":942,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":27197,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":37837,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":21445,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":35368,"func_code":"def reverse(a):\n print(a[::-1])\n return","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":39111,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":20425,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":14360,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":17073,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":14572,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":9708,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":1268,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":39097,"func_code":"def reverse(a):\n a[::-1]\n return","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":17480,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":7879,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":6774,"func_code":"def reverse(a):\n a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":18550,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":35191,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":21992,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":9418,"func_code":"def swap(a, i, j):\n tmp = a[i]\n tmp1 = a[j]\n a[i] = tmp1\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n tmp1 = a[j]\n a[i] = tmp1\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":31940,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a[i], a[j]\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a[i], a[j]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":17999,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":4585,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1771,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":16200,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":31681,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":28960,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":40541,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":31005,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":36437,"func_code":"def search(str, letter):\n for letters in str:\n if letters in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":33668,"func_code":"def search(str, letter):\n for letters in str:\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":7308,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":2198,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":16988,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":30911,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":1107,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":30283,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":28612,"func_code":"def search(str, letter):\n B = False\n A = True\n for letters in str:\n statement = A\n while statement != A:\n if letter in letters:\n print(A)\n statement = B\n else:\n print(B)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n return letter in str\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":21413,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":3326,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":25405,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":11650,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":20207,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":38859,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":38869,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":19569,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2017} {"submission_id":17377,"func_code":"def search(letter):\n str = input()\n letter = input()\n if letter in str:\n print(True)\n else:\n print(false)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":9908,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":41667,"func_code":"def search(str, letter):\n for letter in str:\n return True","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, search_letter):\n for letter in str:\n if letter == search_letter:\n return True\n return False\n","user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","academic_year":2017} {"submission_id":961,"func_code":"def search(letter):\n str = input()\n if letter in str:\n print(True)\n else:\n print(false)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":27288,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":8404,"func_code":"def search(letter):\n str = input()\n if letter in str:\n return True\n else:\n return false","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":37053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":9879,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":32040,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":42412,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":9867,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":36164,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":4736,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":12698,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":31921,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":14528,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":2574,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":38730,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":9206,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":26977,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":20548,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":20198,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":3143,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17711,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":4420,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":6157,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":35991,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":19679,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":23346,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":31949,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":35031,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":39255,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":24009,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":41348,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":35200,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13284,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13686,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":4441,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":2549,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":30776,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":38508,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":5286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":17886,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":13900,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":40302,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":2410,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16152,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":496,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":8898,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":23423,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":26101,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":5446,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":26738,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":16400,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":19028,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":38773,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41422,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":36064,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":34734,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":29301,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":35101,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":25419,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":25874,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":19377,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":21089,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16885,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10621,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":31904,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1269,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":1097,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":30112,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":27285,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":21361,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":9229,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":18997,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":23013,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":2665,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":25343,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13253,"func_code":"def search(str, letter):\n for letter in str:\n if letter in str:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2017} {"submission_id":39946,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n if letter not in str:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n if letter not in str:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":41855,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":35164,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":14610,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":32609,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":1885,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":5916,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":27243,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":33920,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":4030,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":23435,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":7032,"func_code":"def search(str, letter):\n if letter in str:\n return true\n else:\n return false","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5dedf13-336d-484f-81bc-d7898f0f002e","academic_year":2017} {"submission_id":41456,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":6023,"func_code":"def search(str, letter):\n i = 0\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"1952771b-859e-46c9-8146-448dc8ef5870","academic_year":2017} {"submission_id":11310,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":41955,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":32350,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":32661,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":14257,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":26367,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":20591,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":26352,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":5065,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":36247,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":37119,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":42234,"func_code":"def search(str, letter):\n if str == []:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":19928,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letters)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":14053,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":9716,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letters)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":26883,"func_code":"def search(str, letter):\n if letter in str:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":8532,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":24139,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":2728,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":472,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":16780,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":1620,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":1046,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":21667,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":29230,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":36476,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":31699,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":14929,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":11733,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":22281,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":23149,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":39602,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":34428,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11889,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":14879,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":37649,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":8200,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":32899,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":29598,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":40936,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":15004,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":2176,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":24727,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":29293,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":36483,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":21392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":6737,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30594,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19927,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15299,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":18424,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14736,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33512,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37215,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":26840,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":24656,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10663,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15548,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30855,"func_code":"def search(str):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":4121,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":38591,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":34995,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":21480,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":21736,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":3976,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":24428,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17751,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":14959,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13214,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":37824,"func_code":"def search(string, letter):\n string = input()\n letter = input()\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":30850,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":29051,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":21204,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":29490,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":14826,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":23940,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":35111,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":24469,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":1544,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14648,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10452,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":13186,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23719,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37348,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2117,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2503,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":7519,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":1692,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":24343,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":40661,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":32569,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":11774,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":18549,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":5883,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":27064,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":8729,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6209,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":34481,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":23655,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6520,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":12975,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":4986,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1039,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":3286,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":32154,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":20835,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":12876,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":23689,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6759,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":13136,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":3521,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":17117,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":28745,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":37966,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":15796,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'\n i = i + 1","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":5977,"func_code":"def search(str, letter):\n if str == []:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":24930,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":22668,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":8471,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":34658,"func_code":"def search(str, letter):\n if str[-1] != a:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":24483,"func_code":"def search(str, letter):\n if str[-1] != letter:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":21440,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif lstr[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(lstr, letter):\n if len(lstr) == 0:\n return False\n elif lstr[0] == letter:\n return True\n else:\n return search(lstr[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":8976,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":23509,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":35274,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":20620,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":8994,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17797,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31071,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25963,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":2688,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20083,"func_code":"def search(string, letter):\n if string == []:\n print('False')\n elif string[0] == letter:\n print('True')\n else:\n search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":37266,"func_code":"def search(string, letter):\n if string == ' ':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":8061,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":35992,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":38708,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":32648,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":27011,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":39633,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":5878,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":49,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20491,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":27930,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":30199,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":26036,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":7464,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":38412,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":34055,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":42327,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":37986,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":35782,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":1564,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31240,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":35898,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":23397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":32419,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20123,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31486,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":18616,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30425,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":24760,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":12078,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":28770,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":37392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":22043,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17295,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41430,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20068,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":32307,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37964,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":16766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33102,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41082,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15662,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14589,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19235,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":11754,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":35672,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37589,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":19845,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15112,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":13671,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":34086,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":24732,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":30920,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":4766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20242,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33659,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":16561,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14926,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":19099,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":25389,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":10293,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":38421,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":29008,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":5075,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":13079,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":213,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":11527,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":5918,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":26621,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":39760,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":40506,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":31945,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":27573,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":19318,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":5215,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":2417,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":42017,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":8935,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17827,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17317,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":37027,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19079,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":22359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":7960,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":35694,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":7090,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":6198,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":31959,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":6714,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":23497,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":40575,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":21545,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":42023,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":25064,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":12604,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23030,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37789,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":32266,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":10153,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":6837,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":36016,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":2280,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2374,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":12441,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":27766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":32965,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23027,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n if letter not in string:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":36507,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n if letter not in string:\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":37083,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":34921,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":2973,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":36862,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":38288,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30226,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n print('False')\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":28014,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":13524,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":6608,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":42116,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":437,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":29818,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16396,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":24771,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":25365,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":26764,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":11490,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":9097,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":6923,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20408,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":11480,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":16425,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":26503,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1507,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n letter_pos = i + 1\n i = i + 1\n return letter_pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":13361,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":41633,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":35050,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":15233,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25186,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":33772,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n if letter not in str:\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25004,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":4671,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return -1\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":39590,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n else:\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30478,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i = 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31942,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":22923,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":15891,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":28554,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":39263,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":31632,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":8884,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":38471,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":10465,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":31631,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":32704,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":32211,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":10201,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":12134,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":15269,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":37175,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":36042,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":41547,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":11065,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":18948,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":28494,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":7359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":3221,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":31234,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":31278,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":12076,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":1976,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":19834,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30365,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","academic_year":2017} {"submission_id":16539,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","academic_year":2017} {"submission_id":10139,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":35022,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":16281,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":26462,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":32578,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":12650,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":26856,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":39984,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":39391,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":37109,"func_code":"def sumup(n):\n total = 0\n for i in range(n):\n total + i\n return total + n","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n total = 0\n for i in range(n):\n total = total + i\n return total + n\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":40556,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":4572,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"d030c365-0c70-41fc-bf99-b5270c6b8c31","academic_year":2017} {"submission_id":10017,"func_code":"def maximum(l):\n sorted(l)\n return l(len(l) - 1)\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n return l[len(l) - 1]\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":14087,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[0]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n return l[-1]\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":23641,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n if len(l) == 1:\n return l[0]\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":9072,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n if len(l) == 1:\n return l[0]\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":12366,"func_code":"def minimum(n):\n print(min(n))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n return min(n)\n","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":11625,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[-2] < l[-1]:\n return minimum(l[:-1])\n else:\n return minimum(l[:-2] + l[-1:])\n","user":"d0af1b08-7254-49f0-8cc4-d63a85c9199d","academic_year":2017} {"submission_id":24784,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":736,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":10082,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":944,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximum(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":41531,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximun(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximum(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":7722,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n biggest = minimum(a[1:])\n if a[0] > biggest:\n return a[0]\n else:\n return biggest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n biggest = maximum(a[1:])\n if a[0] > biggest:\n return a[0]\n else:\n return biggest\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":19956,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n head = a[0]\n tail = a[1:]\n mintail = minimum(tail)\n if head < mintail:\n smallest = mintail\n else:\n smallest = head\n return smallest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n head = a[0]\n tail = a[1:]\n maxtail = maximum(tail)\n if head < maxtail:\n biggest = maxtail\n else:\n biggest = head\n return biggest\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":34678,"func_code":"def maximum(l, i=0):\n j = i\n while j < len(l) and l[j] > l[-1]:\n j += 1\n if j < len(l):\n tmp = l[i]\n l[i] = l[j]\n l[j] = tmp\n if j > len(l):\n return l[-1]\n return minimum(l, i + 1)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l, i=0):\n j = i\n while j < len(l) and l[j] > l[-1]:\n j += 1\n if j < len(l):\n tmp = l[i]\n l[i] = l[j]\n l[j] = tmp\n if j > len(l):\n return l[-1]\n return maximum(l, i + 1)\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":25488,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":34281,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":30514,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":13319,"func_code":"def sumup(x):\n x = x + sumup(x)\n return x","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(x):\n if x == 0:\n return 0\n x = x + sumup(x - 1)\n return x\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":28816,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.append(a[0])\n return minimum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.append(a[0])\n return maximum(a[1:])\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":37410,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum.pop(l[1])\n else:\n return maximum.pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":16938,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":14655,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":21903,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l.pop(l[1]))\n else:\n return maximum(l.pop(l[0]))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":16689,"func_code":"def maximum(l):\n if len(l) == 0:\n return 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l.pop(l[1]))\n else:\n return maximum(l.pop(l[0]))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 0:\n return 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":29175,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":39219,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":34381,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":5729,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[n + 1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[1:])\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":35526,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[n + 1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[1:])\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":4514,"func_code":"def sumup(n):\n sum = 0\n for x in range(0, n):\n sum += x\n return sum","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n sum = 0\n for x in range(0, n + 1):\n sum += x\n return sum\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":34387,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":30693,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":31181,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":30002,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":38995,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":4000,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":30206,"func_code":"def maximum(n=[]):\n return max(maximum(n))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(n=[]):\n return max(n)\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":24348,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n large = a[0]\n if a[i] > a[0]:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return maximum(a)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n large = a[0]\n if a[1] > a[0]:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return maximum(a)\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":15327,"func_code":"def minimum(a):\n if len(a) == 1:\n return n[0]\n else:\n l = minimum(l[1:])\n if l[0] < l:\n return l[0]\n else:\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":13662,"func_code":"def minimum(a):\n if len(a) == 1:\n return n[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return l[0]\n else:\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":14611,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = maximum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = maximum(a[1:])\n if a[0] > l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":22020,"func_code":"def sumup(N):\n if N != 0:\n N += N - 1\n return N","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(N):\n if N != 0:\n N += sumup(N - 1)\n return N\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":12304,"func_code":"def minimum(l):\n l = l.sort\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":12251,"func_code":"def minimum(l):\n l = l.sort()\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":41243,"func_code":"def maximum(l):\n return sorted(l)[len() - 1]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n return sorted(l)[len(l) - 1]\n","user":"1ea53a09-863b-4396-bbe3-e75221238368","academic_year":2017} {"submission_id":37461,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] < l[i + 1]:\n i += 1\n l = l[i:]\n else:\n l.pop(i + 1)\n return minimum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] < l[i + 1]:\n i += 1\n l = l[i:]\n else:\n l.pop(i + 1)\n return maximum(l)\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":5556,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":8529,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":12579,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":11876,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n f, m = l[0], maximum(l)\n if f > m:\n return f\n else:\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n f, m = l[0], maximum(l[1:])\n if f > m:\n return f\n else:\n return m\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":12634,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":13115,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[0:len(l) \/ 2])\n m2 = minimum(l[len(l) \/ 2:])\n if m1 < m2:\n return m1\n else:\n return m2","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[0:len(l) \/\/ 2])\n m2 = minimum(l[len(l) \/\/ 2:])\n if m1 < m2:\n return m1\n else:\n return m2\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":2095,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[:len(l) \/\/ 2])\n m2 = minimum(l[len(l) \/\/ 2:])\n if m1 > m2:\n return m1\n else:\n return m2","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = maximum(l[:len(l) \/\/ 2])\n m2 = maximum(l[len(l) \/\/ 2:])\n if m1 > m2:\n return m1\n else:\n return m2\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":16913,"func_code":"def sumup(n):\n a = n(n + 1) \/ 2\n return a","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n a = n * (n + 1) \/ 2\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":10683,"func_code":"def sumup(n):\n if int(n) == 0:\n return '0'\n else:\n return int(n(n + 1) \/ 2)","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if int(n) == 0:\n return 0\n else:\n return int(n * (n + 1) \/ 2)\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":40764,"func_code":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_minus_1 = sumup(n - 1)\n return n + sum_to_n_minus_","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_minus_1 = sumup(n - 1)\n return n + sum_to_n_minus_1\n","user":"d05025fd-0a14-4010-acb6-dea38896a651","academic_year":2017} {"submission_id":12764,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n mini = minimun(a[:-1])\n if a[-1] < mini:\n return a[-1]\n else:\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n mini = minimum(a[:-1])\n if a[-1] < mini:\n return a[-1]\n else:\n return mini\n","user":"70a531fa-76d5-4949-ae20-9c7e6db61af8","academic_year":2017} {"submission_id":42384,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = minimum(l[1:])\n return l[0] if l[0] > maxi else maxi","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = maximum(l[1:])\n return l[0] if l[0] > maxi else maxi\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":4839,"func_code":"def sumup(n):\n total = [int(i) for i in range(0, n)]\n return sum(total)","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n total = [int(i) for i in range(0, n + 1)]\n return sum(total)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":28467,"func_code":"def search(ls, val):\n if ls == []:\n return\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":7638,"func_code":"def search(ls, val):\n if ls == []:\n return\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":10160,"func_code":"def search(ls, letter):\n if ls == []:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, letter):\n if len(ls) == 0:\n return False\n elif ls[0] == letter:\n return True\n else:\n return search(ls[1:], letter)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":14875,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == val:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":24719,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"3bb099c4-4248-4efd-bfe2-3c423b916ce0","academic_year":2017} {"submission_id":2945,"func_code":"def count_letters(s):\n global count\n count += 1\n if not s:\n return count\n s = s[:-1]\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s, count=0):\n if not s:\n return count\n s = s[:-1]\n return 1 + count_letters(s)\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":19376,"func_code":"def count_letters(word):\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":9212,"func_code":"def count_letters(word):\n i = 0\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":10188,"func_code":"def count_letters(word):\n if word == '':\n return 0\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if word == '':\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":42374,"func_code":"def count_letters(s):\n total = 0\n if not s:\n return total\n else:\n for c in s[:-1]:\n total += 1\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if not s:\n return total\n else:\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":1737,"func_code":"def count_letters(s):\n count = 0\n i = 0\n while s[i] != '':\n count += 1\n i += 1\n return count_letters(s)\n return count","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n count = 0\n i = 0\n while i < len(s):\n count += 1\n i += 1\n return count\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":7311,"func_code":"def swap_keys_values(d):\n dictionary = {}\n for key in d:\n dictionary[d[key]] = key\n return dictionary","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","academic_year":2017} {"submission_id":11974,"func_code":"def swap_keys_values(d):\n new_d = {}\n key = sorted(d.keys())\n value = sorted(d.values())\n for i in range(0, len(key) - 1):\n new_d[key[i]] = value[i]\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n key = list(d.keys())\n value = list(d.values())\n for i in range(0, len(key)):\n new_d[value[i]] = key[i]\n return new_d\n","user":"75fca52d-a61c-4d91-946c-d376c5569767","academic_year":2017} {"submission_id":18678,"func_code":"def swap_keys_values(d):\n new_d = {}\n for k, v in d:\n d1[v] = k\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in d.items():\n new_d[v] = k\n return new_d\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":18855,"func_code":"def swap_keys_values(d):\n new_dict = {}\n i = 0\n while i < len(d):\n new_dict[d[0]] = d[1]\n i += 1\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n i = 0\n keys = list(d.keys())\n values = list(d.values())\n while i < len(d):\n new_dict[values[i]] = keys[i]\n i += 1\n return new_dict\n","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","academic_year":2017} {"submission_id":17348,"func_code":"def swap_keys_values(x):\n d = {v: k for k, v in list(a.items())}\n return x","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(x):\n d = {v: k for k, v in list(x.items())}\n return d\n","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","academic_year":2017} {"submission_id":28023,"func_code":"def swap_keys_values(d):\n dic = {}\n for key in d:\n d[key] = value\n d[value] = d[key]\n return dic","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n dic = {}\n for key, value in d.items():\n dic[value] = key\n return dic\n","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":10312,"func_code":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","academic_year":2017} {"submission_id":16548,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":32732,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":19006,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":33533,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":18046,"func_code":"def count_letters(s):\n total = 0\n for c in (s - 1):\n total += 1\n return count_letters(s[:-1]) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":19033,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return 0\n else:\n for c in s[:-1]:\n total += 1\n s = s[c:-1]\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if s == '':\n return 0\n else:\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":21182,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s[:-1]:\n total += 1\n i += 1\n s = s[i:-1]\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":16045,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n s[i] = 1\n t = s[:i]\n t += s[i]\n t += s[i:]\n s = t\n if not s.isupper():\n total = 0\n for c in s:\n total += c\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":20475,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n s[i] = '1'\n t = s[:i]\n t += s[i]\n t += s[i:]\n s = t\n if not s.isupper():\n total = 0\n for c in s:\n total += int(c)\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":30363,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n t = s[:i]\n t += '1'\n t += s[i:]\n s = t\n i += 1\n if not s.isupper():\n total = 0\n for c in s:\n total += int(c)\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":11706,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s.lower():\n if c.islower():\n t = s[:i]\n t += '1'\n t += s[i:]\n s = t\n i += 1\n if not s.islower():\n total = 0\n for c in s:\n total += 1\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":27032,"func_code":"def count_letters(s):\n count = 0\n if s == '':\n return count\n elif s != '':\n s = list(s)\n s.pop()\n \"\"\"\"\"\".join(s)\n print(count)\n count += 1\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":39643,"func_code":"def count_letters(s=''):\n return count(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":39787,"func_code":"def search(string, letter):\n print(letter in string)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":455,"func_code":"def count_letters(s):\n total = 0\n for c in s[:-1]:\n total += 1\n return count_letters(s[:-1]) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":8627,"func_code":"def swap_keys_values(d):\n keys = []\n values = []\n dic = {}\n for v, k in list(d.items()):\n keys.append(k)\n values.append(v)\n i = 0\n while i < len(values):\n dic[values[i]] = keys[i]\n i = i + 1\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n keys = []\n values = []\n dic = {}\n for k, v in list(d.items()):\n keys.append(k)\n values.append(v)\n i = 0\n while i < len(values):\n dic[values[i]] = keys[i]\n i = i + 1\n return dic\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":40049,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print(a)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":3503,"func_code":"def swap_keys_values(d):\n keys = list(d.keys())\n values = list(d.values())\n new = {}\n i = 0\n while i < len(keys):\n new[value[i]] = keys[i]\n i = i + 1\n return new","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n keys = list(d.keys())\n values = list(d.values())\n new = {}\n i = 0\n while i < len(keys):\n new[values[i]] = keys[i]\n i = i + 1\n return new\n","user":"ebcb6801-87f5-4fa5-b252-f89ccb02603a","academic_year":2017} {"submission_id":6626,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print((a, 'boop'))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":35363,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for k, v in (list(d.keys()), list(d.values())):\n new_dict[v] = k\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for k, v in zip(list(d.keys()), list(d.values())):\n new_dict[v] = k\n return new_dict\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":37561,"func_code":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor:\n new_dictionary[values] = keys","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor.items():\n new_dictionary[values] = keys\n return new_dictionary\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":29365,"func_code":"def swap_keys_values(d):\n print(d)\n new_dict = {}\n i = 0\n while i < len(d):\n new_dict[d[i]] = d[0]\n i += 1\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n keys = list(d.keys())\n values = list(d.values())\n i = 0\n while i < len(d):\n new_dict[values[i]] = keys[i]\n i += 1\n return new_dict\n","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","academic_year":2017} {"submission_id":40958,"func_code":"def swap_keys_values(d):\n for k, v in list(d.items()):\n k, v = v, k\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in list(d.items()):\n new_d[v] = k\n return new_d\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":12754,"func_code":"def swap_keys_values(d):\n d_2 = []\n for entry in list(d.items()):\n u = entry[::-1]\n for k, v in u.split(','):\n d_2[k] = v\n return d_2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d_2 = {}\n for entry in list(d.items()):\n k, v = entry\n d_2[v] = k\n return d_2\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":40179,"func_code":"def swap_keys_values(d):\n a = []\n for entry in list(d.items()):\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":19572,"func_code":"def swap_keys_values(d):\n a = []\n for entry in list(d.items()):\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":19666,"func_code":"def swap_keys_values(a):\n for entry in a:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":14051,"func_code":"def swap_keys_values(d):\n a = []\n for entry in d:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":36531,"func_code":"def swap_keys_values(d):\n a = []\n for entry in d:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":9172,"func_code":"def swap_keys_values(d):\n for key in d:\n key = tmp\n key = d[key]\n d[key] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":20640,"func_code":"def swap_keys_values(d):\n tmp = ''\n for key in d:\n key = tmp\n key = d[key]\n d[key] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":32179,"func_code":"def swap_keys_values(d):\n tmp = ''\n for key in d:\n key = key.split()\n tmp = key[0]\n key[0] = key[1]\n key[1] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":34219,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n tmp = key[0]\n key[0] = key[1]\n key[1] = tmp\n return tmp","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":18058,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n return key","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":38045,"func_code":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}\n return new\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":3826,"func_code":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return x","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return d\n","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","academic_year":2017} {"submission_id":3017,"func_code":"def swap_keys_values(d):\n d = {}\n for k, v in list(d.items()):\n d[v] = k\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in list(d.items()):\n new_d[v] = k\n return new_d\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":38024,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d:\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d.items():\n new_dict[value] = key\n return new_dict\n","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":9242,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n new_dict[value] = key\n return new_dict\n","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":988,"func_code":"def swap_keys_values(d):\n a2 = {}\n a3 = {}\n ar = sorted(list(d.items()), reverse=True)\n for k, v in ar:\n a2[v] = k\n ar2 = sorted(list(a2.items()), reverse=True)\n for k, v in ar2:\n a3[k] = v\n return a3","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","academic_year":2017} {"submission_id":38562,"func_code":"def swap_keys_values(d):\n a2 = {}\n a3 = {}\n ar = sorted(list(d.items()), reverse=True)\n for k, v in ar:\n a2[v] = k\n ar2 = sorted(list(a2.items()), reverse=True)\n for k, v in ar2:\n a3[k] = v\n return a3","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","academic_year":2017} {"submission_id":34366,"func_code":"def swap_keys_values():\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n for e in oldkeys:\n swappeddict[oldvlaues] = oldkeys\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n for k, v in zip(oldkeys, oldvalues):\n swappeddict[v] = k\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":38765,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n for e in oldkeys:\n swappeddict[oldvalues] = oldkeys\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n for k, v in zip(oldkeys, oldvalues):\n swappeddict[v] = k\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":32144,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":38624,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":15295,"func_code":"def swap_keys_values(d):\n swap1 = {}\n swap2 = {}\n swapsorted = sorted(list(d.items()), reverse=True)\n for k, v in swapsorted:\n swap1[v] = k\n swapsorted2 = sorted(list(swap1.items()), reverse=True)\n for k, v in swapsorted2:\n swap2[k] = v\n return swap2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":38875,"func_code":"def swap_keys_values(d):\n swap1 = {}\n swap2 = {}\n swapsorted = sorted(list(d.items()), reverse=True)\n for k, v in swapsorted:\n swap1[v] = k\n swapsorted2 = sorted(list(swap1.items()), reverse=True)\n for k, v in swapsorted2:\n swap2[k] = v\n return swap2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":37103,"func_code":"def swap_keys_values():\n new_dic = {}\n for key in dic:\n if dic[key] not in new_dic:\n new_dic[dic[key]] = key\n return new_dic","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dic):\n new_dic = {}\n for key in dic:\n new_dic[dic[key]] = key\n return new_dic\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":35788,"func_code":"def minimum(n):\n print(n)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":15807,"func_code":"def minimum(l=[]):\n if len(l) == 0:\n return l\n lowest = 0\n i = 0\n while i < len(l):\n if i > lowest:\n lowest = i\n return lowest","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n lowest = l[0]\n i = 0\n while i < len(l):\n if l[i] < lowest:\n lowest = l[i]\n i += 1\n return lowest\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":19432,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":12511,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n small = a[1]\n else:\n a.remove(a[0])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":16483,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":13046,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n return minimum(l[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n min = minimum(l[1:])\n return l[0] if l[0] < min else min\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":17597,"func_code":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[0:]):\n return l[0]\n else:\n return minimum(l[:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[1:]):\n return l[0]\n else:\n return minimum(l[1:])\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":9581,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return minimum(list.pop())","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return list[0]\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":2031,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n elif list[0] < minimum(list[1:]):\n return list[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n elif list[0] < minimum(list[1:]):\n return list[0]\n else:\n return minimum(list[1:])\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":11947,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.append(a[0])\n return minmum(a[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":16872,"func_code":"def minimum(l):\n if len(l) == 0:\n return 0\n lowest = 100\n for line in l:\n if line < lowest:\n lowest = line\n return minimum(lowest)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n lowest = l[0]\n for line in l:\n if line < lowest:\n lowest = line\n return lowest\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":20481,"func_code":"def minimum(l):\n print(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":17780,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n l = min(l[0], mininum(l[1:]))\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n l = min(l[0], minimum(l[1:]))\n return l\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":12282,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n elif l[0] < l[1]:\n l.remove(l[0])\n return minimum(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[0])\n elif l[0] <= l[1]:\n l.remove(l[1])\n return minimum(l)\n","user":"9f673df6-fcfd-4d07-b0dd-1f553c38f25b","academic_year":2017} {"submission_id":34316,"func_code":"def minimum(l):\n l = sort(l)\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":8341,"func_code":"def minimum(l):\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":21875,"func_code":"def minimum(l):\n l = l.sort(key=None)\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort(key=None)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":20650,"func_code":"def minimum(l):\n l = l.sort(key=min())\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":37517,"func_code":"def minimum(l):\n return sorted(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n return sorted(l)[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":18495,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":15677,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n return l.remove(large)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n l.remove(large)\n return minimum(l)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":19534,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n return minimum(l.remove(large))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n l.remove(large)\n return minimum(l)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":18631,"func_code":"def minimum(l, n):\n if n == 0:\n return l[0]\n min = minimum(l[1:], n - 1)\n if l[0] < min:\n return l[0]\n else:\n return min","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":14069,"func_code":"def minimum(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":24960,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n small = a[0]\n if a[1] < small:\n small = a[1]\n else:\n a.remove(a[0])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n small = a[0]\n if a[1] > small:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":32989,"func_code":"def minimum(l=[]):\n if len(l) == 0:\n return l\n lowest = 0\n i = 0\n j = i + 1\n while i < len(l):\n if i < j[i]:\n j[i] = i\n return i","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":21725,"func_code":"def minimum(l):\n print('1\\n3\\n6\\n4')","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":2494,"func_code":"def minimum(n):\n if len(n) == 1:\n return n\n if n[0] > minimum(n[1:]):\n return n + 1\n else:\n return minimum(n - 1)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < minimum(n[1:]):\n return n[0]\n else:\n return minimum(n[1:])\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":28358,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n minimum = minimum(l[1])\n if l[0] < minimum:\n l.pop(minimum)\n else:\n l.pop(l[0])\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n mini = minimum(l[1:])\n if l[0] > mini:\n return mini\n return l[0]\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":22775,"func_code":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[:]):\n return l[0]\n else:\n return minimum(l[:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[1:]):\n return l[0]\n else:\n return minimum(l[1:])\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":2348,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n max_value = max(list)\n return list.remove(max_value)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n max_value = max(list)\n list.remove(max_value)\n return minimum(list)\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":21722,"func_code":"def minimum(l):\n lowest = 10000000000\n if l == []:\n return lowest\n if int(l[0]) < lowest:\n lowest = int(l[0])\n return minimum(l[0]).pop","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":14211,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":27727,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":28377,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":9182,"func_code":"def minimum(l):\n mini = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":25565,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":39749,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":4540,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) < mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) < mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":8157,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":221,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return l[i]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":41708,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":22886,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":13264,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":28641,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":13936,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n small = a[i]\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":7246,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":24555,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":31463,"func_code":"def minimum(l):\n l = l.sort()\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":22521,"func_code":"def minimum(l):\n sorted(l)\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":23105,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] > l[i + 1]:\n i = i + 1\n l = l[i]\n else:\n l.pop(i + 1)\n return minimum(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":10456,"func_code":"def minimum(l, min):\n if not l:\n return []\n return minimum(l[1:], l[0] if l[0] < val else val)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":13228,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":23237,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":23959,"func_code":"def minimum(l, n=0):\n min = minimum(l[1:], n - 1)\n if l[0] < min:\n return l[0]\n else:\n return min","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n min = minimum(l[1:])\n if l[0] < min:\n return l[0]\n else:\n return min\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":24086,"func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = maximum(l[1:])\n return l[0] if l[0] > maxi else maxi\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":9619,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":41825,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev.rstrip())","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":39634,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev.strip())","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":25576,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":22381,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n print(rev)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":30666,"func_code":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i])\n i = i + 1\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n while i < len(a):\n rev.append(a[len(a) - i - 1])\n i = i + 1\n return rev\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11676,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":21734,"func_code":"def reverse(a):\n rev = []\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n for i in range(len(a)):\n rev.append(a[len(a) - i - 1])\n return rev\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":947,"func_code":"def reverse(a):\n rev = []\n i = 0\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n rev = []\n i = 0\n for i in range(len(a)):\n rev.append(a[len(a) - i - 1])\n return rev\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":35613,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":24622,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":38930,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":31881,"func_code":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n t = a[i]\n a[i] = a[j]\n a[j] = t\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2017} {"submission_id":40522,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n j = 0\n i = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":15057,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":26332,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":37211,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":10625,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":11388,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":20830,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":35829,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":27306,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i]\n a[-i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":31988,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":32699,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - 1 - i]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":42328,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":518,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":31082,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, a[i], a[j])\n i = i + 1\n j = len(a) - i - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = len(a) - i - 1\n return a\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":36140,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":16672,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":39465,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","academic_year":2017} {"submission_id":25940,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a[i] = a[len(a) - 1 - i]\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i += 1\n return b\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":42121,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":13956,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n func_reverse.swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":37723,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":16600,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":32086,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = j + 1\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":15432,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":26853,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":40900,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":14210,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = a[i]\n a[i] = tmp\n i += 1\n return a\n","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","academic_year":2017} {"submission_id":21091,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a):\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":7167,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":26262,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a):\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n if len(a) == 1:\n return a\n else:\n while i < len(a) \/ 2:\n tmp = a[j - i]\n a[j - i] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":34696,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[len(a) - i]\n a[len(a) - i] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":4104,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":34278,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a):\n tmp = a[j - i - 1]\n a[j - i - 1] = a[i]\n a[i] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a)\n if len(a) == 1:\n return a\n else:\n while i < len(a) \/ 2:\n tmp = a[j - i - 1]\n a[j - i - 1] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":6321,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":38521,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":9977,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","academic_year":2017} {"submission_id":20857,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a):\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) \/ 2:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":18861,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":22250,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":29294,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":35714,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) and j != i:\n swap()\n i = i - 1\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = len(a) - 1\n j = 0\n while i != 0 and j < len(a) and j < i:\n swap(a, i, j)\n i = i - 1\n j = j + 1\n return a\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":10271,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":16990,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":4273,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":33110,"func_code":"def reverse(a, i):\n tmp = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[i]\n a[i] = tmp","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":41496,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":27843,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":2306,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2017} {"submission_id":7077,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) and len(a) > 1:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2 and len(a) > 1:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":12,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":5061,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":26517,"func_code":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i + 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n print(swap(a, i, j))","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j = j + 1\n i = i - 1\n return a\n\n\ndef reverse(a):\n j = 0\n i = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":30774,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":20795,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":2943,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":38330,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":20419,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":25200,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":20414,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":20173,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1\n return a\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":21707,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":40493,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a):\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":19652,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":24060,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":22751,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a):\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":4012,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":13539,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a):\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":35196,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":17586,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":2961,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":36169,"func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":32992,"func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":36268,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":17833,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":18393,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":8934,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) + 1\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":15107,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":13145,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j > len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":4854,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":31941,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":21669,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":24058,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":25857,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":20456,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":14727,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":24889,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i = i + 1\n return a\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":22145,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":13119,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":20782,"func_code":"def swap(a, i, j):\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n swap(a, i, j)","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n return swap(a, i, j)\n","user":"b67cd859-9a7c-482d-b980-f147ea336355","academic_year":2017} {"submission_id":16720,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"6fb1b046-1d89-4162-8437-722d44e22f50","academic_year":2017} {"submission_id":14993,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","academic_year":2017} {"submission_id":30152,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","academic_year":2017} {"submission_id":26323,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":25670,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":5036,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":41303,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":28597,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":5498,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","academic_year":2017} {"submission_id":2771,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":31092,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"09e5a143-ae3a-4611-8cfa-45d52e07b2c6","academic_year":2017} {"submission_id":30427,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":40170,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":7298,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"6fb1b046-1d89-4162-8437-722d44e22f50","academic_year":2017} {"submission_id":34427,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j + j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":1535,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":17254,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j + j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":4234,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":11366,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while j < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":6750,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 1\n while i < len(a):\n j = i + 1\n swap(a, i, j)\n i += 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i += 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":36012,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":553,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":9605,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":17744,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) - 1:\n j = i + 1\n swap(a, i, j)\n i += 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i += 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":31143,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":30936,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":36342,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","academic_year":2017} {"submission_id":13345,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e446f262-2121-4c37-a09e-a856c55efaca","academic_year":2017} {"submission_id":34947,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":12060,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e446f262-2121-4c37-a09e-a856c55efaca","academic_year":2017} {"submission_id":38358,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = a[0]\n j = len(a) - 1\n while i < j:\n a = swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":13371,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":36621,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":1425,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = int(a[len(a) - i - 1])\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":37351,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":5788,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":20140,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n tmp = a[j]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":17853,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","academic_year":2017} {"submission_id":34004,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","academic_year":2017} {"submission_id":36122,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":3797,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":12752,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":15472,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":13484,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = a[len(a) - i - 1]\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":28691,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1\n return a\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":41477,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1\n return a\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":40898,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1\n return a\n","user":"36685ead-53f8-40af-a908-4c048278dc6b","academic_year":2017} {"submission_id":547,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j -= 1\n i += 1\n return a\n","user":"36685ead-53f8-40af-a908-4c048278dc6b","academic_year":2017} {"submission_id":39819,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a):\n swap(a, i, j)\n i += 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":9359,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":4453,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"05bf8435-64be-48cb-be81-139956827989","academic_year":2017} {"submission_id":30178,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"05bf8435-64be-48cb-be81-139956827989","academic_year":2017} {"submission_id":8437,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":30470,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":21856,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = a[0]\n j = len(a) - 1\n while i < j:\n a = swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":17782,"func_code":"def reverse(a):\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":17728,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":23086,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":32960,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":19315,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":13063,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":16967,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","academic_year":2017} {"submission_id":41902,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":6648,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":10648,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":26090,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":2388,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":12726,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":5424,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":34046,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = a[len(a) - 1]\n while i < len(a):\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":11219,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a \/ 2):\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":38068,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":14169,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","academic_year":2017} {"submission_id":2110,"func_code":"def reverse(a):\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":8997,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":22867,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":7607,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","academic_year":2017} {"submission_id":42462,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","academic_year":2017} {"submission_id":32054,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":7666,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"50aef720-52de-4735-8874-78f5a311b939","academic_year":2017} {"submission_id":13597,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","academic_year":2017} {"submission_id":11295,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","academic_year":2017} {"submission_id":32551,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":19539,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":15113,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":12312,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":39711,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n a[tmp] = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = a[tmp]\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"536d6075-5a50-4346-89ff-5e21df057756","academic_year":2017} {"submission_id":21719,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":35405,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a = a + a[len(a) - i - 1]\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - i - 1])\n i = i + 1\n return b\n","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":38961,"func_code":"def reverse(a):\n i = 0\n t = []\n while i < len(a):\n t = t + a[len(a) - i - 1]\n i = i + 1\n return t","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n t = []\n while i < len(a):\n t.append(a[len(a) - i - 1])\n i = i + 1\n return t\n","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":24993,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != []:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":41948,"func_code":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != [] and len(a) > 2:\n while i < 2 % len(a):\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n elif len(a) <= 2 and len(a) > 0:\n swap(a, i, j)\n return a\n else:\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n if a != []:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n else:\n return a\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n if a != [] and len(a) > 2:\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n elif len(a) <= 2 and len(a) > 0:\n swap(a, i, j)\n return a\n else:\n return a\n","user":"f15a871d-61c5-494f-8886-91e213b59201","academic_year":2017} {"submission_id":13008,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(l):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":1004,"func_code":"def swap(a, i, j):\n tmp = i\n i = j\n j = tmp\n\n\ndef reverse(a):\n while i < j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"825987dd-47a8-4023-b124-16b318935de3","academic_year":2017} {"submission_id":19480,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":6619,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","academic_year":2017} {"submission_id":23108,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":1195,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i = i + 1\n return a\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":39886,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","academic_year":2017} {"submission_id":7733,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n j = j - 1\n i = i + 1\n return a\n","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","academic_year":2017} {"submission_id":20634,"func_code":"def reverse(a):\n a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":20771,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":32940,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":1095,"func_code":"def reverse(a):\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":9155,"func_code":"def reverse(a):\n a[::-1]\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":36535,"func_code":"def reverse(a):\n a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"0964a543-93db-460b-a0c5-d0c94fea250f","academic_year":2017} {"submission_id":5042,"func_code":"def reverse(a):\n a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"0964a543-93db-460b-a0c5-d0c94fea250f","academic_year":2017} {"submission_id":15424,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":20546,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":942,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2017} {"submission_id":27197,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":37837,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":21445,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = -1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"9083bfed-4cf9-4111-9300-37bfea094de1","academic_year":2017} {"submission_id":35368,"func_code":"def reverse(a):\n print(a[::-1])\n return","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":39111,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":20425,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":14360,"func_code":"def reverse(a):\n print(a[::-1])\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":17073,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":14572,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":9708,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":1268,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":39097,"func_code":"def reverse(a):\n a[::-1]\n return","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":17480,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":7879,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":6774,"func_code":"def reverse(a):\n a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":18550,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":35191,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":21992,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","academic_year":2017} {"submission_id":9418,"func_code":"def swap(a, i, j):\n tmp = a[i]\n tmp1 = a[j]\n a[i] = tmp1\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n tmp1 = a[j]\n a[i] = tmp1\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":31940,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a[i], a[j]\n\n\ndef reverse(a):\n i = 0\n j = len(a) - i - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a[i], a[j]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":17999,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":4585,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1771,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":16200,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":31681,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":28960,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":40541,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":31005,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":36437,"func_code":"def search(str, letter):\n for letters in str:\n if letters in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":33668,"func_code":"def search(str, letter):\n for letters in str:\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":7308,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":2198,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":16988,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":30911,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":1107,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":30283,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":28612,"func_code":"def search(str, letter):\n B = False\n A = True\n for letters in str:\n statement = A\n while statement != A:\n if letter in letters:\n print(A)\n statement = B\n else:\n print(B)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n return letter in str\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":21413,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":3326,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":25405,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":11650,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":20207,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":38859,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":38869,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2017} {"submission_id":19569,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2017} {"submission_id":17377,"func_code":"def search(letter):\n str = input()\n letter = input()\n if letter in str:\n print(True)\n else:\n print(false)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":9908,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":41667,"func_code":"def search(str, letter):\n for letter in str:\n return True","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, search_letter):\n for letter in str:\n if letter == search_letter:\n return True\n return False\n","user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","academic_year":2017} {"submission_id":961,"func_code":"def search(letter):\n str = input()\n if letter in str:\n print(True)\n else:\n print(false)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":27288,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":8404,"func_code":"def search(letter):\n str = input()\n if letter in str:\n return True\n else:\n return false","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":37053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":9879,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":32040,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":42412,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":9867,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":36164,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":4736,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":12698,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":31921,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":14528,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":2574,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":38730,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":9206,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":26977,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":20548,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":20198,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":3143,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17711,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":4420,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":6157,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":35991,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":19679,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":23346,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":31949,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":35031,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":39255,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":24009,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":41348,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":35200,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13284,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13686,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":4441,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":2549,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":30776,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":38508,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":5286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":17886,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":13900,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":40302,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","academic_year":2017} {"submission_id":2410,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16152,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":496,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":8898,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":23423,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":26101,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":5446,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":26738,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":16400,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":19028,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":38773,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41422,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":36064,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":34734,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":29301,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":35101,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":25419,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":25874,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":19377,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"9de68f60-663e-4929-b3e2-88948f90a669","academic_year":2017} {"submission_id":21089,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16885,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10621,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":31904,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1269,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":1097,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":30112,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":27285,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":21361,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":9229,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":18997,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":23013,"func_code":"def search(ls, val):\n if ls == []:\n return -1\n elif ls[0] == val:\n return val\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","academic_year":2017} {"submission_id":2665,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":25343,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13253,"func_code":"def search(str, letter):\n for letter in str:\n if letter in str:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2017} {"submission_id":39946,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n if letter not in str:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n if letter not in str:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":41855,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":35164,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","academic_year":2017} {"submission_id":14610,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":32609,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":1885,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":5916,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":27243,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":33920,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":4030,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":23435,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":7032,"func_code":"def search(str, letter):\n if letter in str:\n return true\n else:\n return false","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5dedf13-336d-484f-81bc-d7898f0f002e","academic_year":2017} {"submission_id":41456,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":6023,"func_code":"def search(str, letter):\n i = 0\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"1952771b-859e-46c9-8146-448dc8ef5870","academic_year":2017} {"submission_id":11310,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":41955,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":32350,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":32661,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":14257,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) > 0:\n if letter == string[0]:\n return True\n else:\n return search(string[1:], letter)\n else:\n return False\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":26367,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":20591,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":26352,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":5065,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","academic_year":2017} {"submission_id":36247,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":37119,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","academic_year":2017} {"submission_id":42234,"func_code":"def search(str, letter):\n if str == []:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","academic_year":2017} {"submission_id":19928,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letters)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":14053,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":9716,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letters)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"d31360b5-795b-45df-bd6f-a99df2683eae","academic_year":2017} {"submission_id":26883,"func_code":"def search(str, letter):\n if letter in str:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":8532,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":24139,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":2728,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":472,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":16780,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":1620,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":1046,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":21667,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":29230,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":36476,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":31699,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":14929,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":11733,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":22281,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":23149,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":39602,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","academic_year":2017} {"submission_id":34428,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":11889,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":14879,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":37649,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":8200,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":32899,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":29598,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","academic_year":2017} {"submission_id":40936,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":15004,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":2176,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":24727,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":29293,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":36483,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":21392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","academic_year":2017} {"submission_id":6737,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30594,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19927,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15299,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":18424,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14736,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33512,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37215,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":26840,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":24656,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10663,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15548,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30855,"func_code":"def search(str):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":4121,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":38591,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":34995,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":21480,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":21736,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":3976,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":24428,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17751,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":14959,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":13214,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":37824,"func_code":"def search(string, letter):\n string = input()\n letter = input()\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":30850,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":29051,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":21204,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":29490,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":14826,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":23940,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":35111,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":24469,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":1544,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14648,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":10452,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":13186,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23719,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37348,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2117,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2503,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":7519,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":1692,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":24343,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":40661,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":32569,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":11774,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":18549,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":5883,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":27064,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":8729,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6209,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":34481,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":23655,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6520,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":12975,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":4986,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1039,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":3286,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":32154,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":20835,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":12876,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":23689,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":6759,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":13136,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":3521,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":17117,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":28745,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":37966,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":15796,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'\n i = i + 1","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":5977,"func_code":"def search(str, letter):\n if str == []:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":24930,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":22668,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":8471,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2017} {"submission_id":34658,"func_code":"def search(str, letter):\n if str[-1] != a:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":24483,"func_code":"def search(str, letter):\n if str[-1] != letter:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":21440,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif lstr[0] == letter:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(lstr, letter):\n if len(lstr) == 0:\n return False\n elif lstr[0] == letter:\n return True\n else:\n return search(lstr[1:], letter)\n","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","academic_year":2017} {"submission_id":8976,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":23509,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":35274,"func_code":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return '-1'","assignment_id":"index_iter","func_name":"index","description":"Returns the position of letter in str, -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","annotation":"def index(str, letter):\n if letter in str:\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n else:\n return -1\n","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2017} {"submission_id":20620,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":8994,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17797,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31071,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25963,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":2688,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20083,"func_code":"def search(string, letter):\n if string == []:\n print('False')\n elif string[0] == letter:\n print('True')\n else:\n search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":37266,"func_code":"def search(string, letter):\n if string == ' ':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":8061,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":35992,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":38708,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":32648,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":27011,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":39633,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":5878,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":49,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20491,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":27930,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":30199,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":26036,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":7464,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":38412,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":34055,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":42327,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":37986,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":35782,"func_code":"def search(string, letter):\n if string == '':\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":1564,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31240,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":35898,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":23397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":32419,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":20123,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31486,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":18616,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30425,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":24760,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":12078,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":28770,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":37392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":22043,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17295,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41430,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20068,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":32307,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37964,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":16766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33102,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":41082,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15662,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14589,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19235,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":11754,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":35672,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37589,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":19845,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":15112,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":13671,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":34086,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":24732,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":30920,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","academic_year":2017} {"submission_id":4766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20242,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":33659,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":16561,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":14926,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":19099,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":25389,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","academic_year":2017} {"submission_id":10293,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":38421,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":29008,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":5075,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":13079,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":213,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":11527,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":5918,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","academic_year":2017} {"submission_id":26621,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":39760,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":40506,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":31945,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":27573,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","academic_year":2017} {"submission_id":19318,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":5215,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":2417,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"424d327d-5f5b-4330-a365-eccda358dbd5","academic_year":2017} {"submission_id":42017,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":8935,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":17827,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":17317,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":37027,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":19079,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":22359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":7960,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":35694,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":7090,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":6198,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":31959,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":6714,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":23497,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":40575,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":21545,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":42023,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":25064,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":12604,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23030,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":37789,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return 'False'\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":32266,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":10153,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":6837,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":36016,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","academic_year":2017} {"submission_id":2280,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":2374,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":12441,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":27766,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","academic_year":2017} {"submission_id":32965,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":23027,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n if letter not in string:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":36507,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n if letter not in string:\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":37083,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":34921,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":2973,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":36862,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","academic_year":2017} {"submission_id":38288,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":30226,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n print('False')\n return search(string[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":28014,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":13524,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":6608,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":42116,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n i = 0\n while i < len(str):\n if str[i] == letter2:\n return i\n i += 1\n return '-1'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"54e3b0c4-223a-427c-9155-d6954330319d","academic_year":2017} {"submission_id":437,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":29818,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":16396,"func_code":"def search(string, letter):\n if string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)\n print('False')","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2017} {"submission_id":24771,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":25365,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":26764,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":11490,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","academic_year":2017} {"submission_id":9097,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":6923,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":20408,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":11480,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":16425,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":26503,"func_code":"def search(ls, val, na=0):\n pos = len(ls)\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":1507,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n letter_pos = i + 1\n i = i + 1\n return letter_pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":13361,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":41633,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":35050,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":15233,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25186,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n i = i + 1\n return pos\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":33772,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n if letter not in str:\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":25004,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":4671,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return -1\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":39590,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n else:\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30478,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i = 1\n return '-1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":31942,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":22923,"func_code":"def index(str, letter, pos):\n i = str[0]\n pos = 1\n while i < len(str):\n if letter in str:\n pos = i + 1\n return pos\n i = i + 1\n return '1'\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":15891,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":28554,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":39263,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","academic_year":2017} {"submission_id":31632,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":8884,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":38471,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":10465,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":31631,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":32704,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"415d4431-1b98-4241-a978-02dc16bf556e","academic_year":2017} {"submission_id":32211,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":10201,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":12134,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":15269,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":37175,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":36042,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","academic_year":2017} {"submission_id":41547,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":11065,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":18948,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","academic_year":2017} {"submission_id":28494,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":7359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":3221,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":31234,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":31278,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","academic_year":2017} {"submission_id":12076,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":1976,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":19834,"func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 'False'\n elif str[pos] == letter:\n return 'True'\n else:\n return search(str, letter, pos + 1)\n\n\ndef search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return 'True'\n i = i + 1\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i = i + 1\n return False\n","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","academic_year":2017} {"submission_id":30365,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","academic_year":2017} {"submission_id":16539,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","academic_year":2017} {"submission_id":10139,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":35022,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":16281,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","academic_year":2017} {"submission_id":26462,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":32578,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":12650,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":26856,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","academic_year":2017} {"submission_id":39984,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":39391,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":37109,"func_code":"def sumup(n):\n total = 0\n for i in range(n):\n total + i\n return total + n","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n total = 0\n for i in range(n):\n total = total + i\n return total + n\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":40556,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2017} {"submission_id":4572,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"d030c365-0c70-41fc-bf99-b5270c6b8c31","academic_year":2017} {"submission_id":10017,"func_code":"def maximum(l):\n sorted(l)\n return l(len(l) - 1)\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n return l[len(l) - 1]\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":14087,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[0]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n return l[-1]\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":23641,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n if len(l) == 1:\n return l[0]\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":9072,"func_code":"def maximum(l):\n l = sorted(l)\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l = sorted(l)\n if len(l) == 1:\n return l[0]\n if l[len(l) - 1] > l[len(l) - 2]:\n return l[len(l) - 1]\n return maximum(l)\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":12366,"func_code":"def minimum(n):\n print(min(n))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n return min(n)\n","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":11625,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[-2] < l[-1]:\n return minimum(l[:-1])\n else:\n return minimum(l[:-2] + l[-1:])\n","user":"d0af1b08-7254-49f0-8cc4-d63a85c9199d","academic_year":2017} {"submission_id":24784,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":736,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":10082,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n return minimum(a[:-1])\n else:\n return minimum(a[:-2] + a[-1:])\n","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","academic_year":2017} {"submission_id":944,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximum(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":41531,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximun(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > maximum(a[1:]):\n return a[0]\n else:\n return maximum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":7722,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n biggest = minimum(a[1:])\n if a[0] > biggest:\n return a[0]\n else:\n return biggest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n biggest = maximum(a[1:])\n if a[0] > biggest:\n return a[0]\n else:\n return biggest\n","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","academic_year":2017} {"submission_id":19956,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n head = a[0]\n tail = a[1:]\n mintail = minimum(tail)\n if head < mintail:\n smallest = mintail\n else:\n smallest = head\n return smallest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n head = a[0]\n tail = a[1:]\n maxtail = maximum(tail)\n if head < maxtail:\n biggest = maxtail\n else:\n biggest = head\n return biggest\n","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":34678,"func_code":"def maximum(l, i=0):\n j = i\n while j < len(l) and l[j] > l[-1]:\n j += 1\n if j < len(l):\n tmp = l[i]\n l[i] = l[j]\n l[j] = tmp\n if j > len(l):\n return l[-1]\n return minimum(l, i + 1)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l, i=0):\n j = i\n while j < len(l) and l[j] > l[-1]:\n j += 1\n if j < len(l):\n tmp = l[i]\n l[i] = l[j]\n l[j] = tmp\n if j > len(l):\n return l[-1]\n return maximum(l, i + 1)\n","user":"7d992268-b79a-4106-8fbb-4f53742d117d","academic_year":2017} {"submission_id":25488,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":34281,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":30514,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","academic_year":2017} {"submission_id":13319,"func_code":"def sumup(x):\n x = x + sumup(x)\n return x","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(x):\n if x == 0:\n return 0\n x = x + sumup(x - 1)\n return x\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":28816,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.append(a[0])\n return minimum(a[1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.append(a[0])\n return maximum(a[1:])\n","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":37410,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum.pop(l[1])\n else:\n return maximum.pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":16938,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":14655,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":21903,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l.pop(l[1]))\n else:\n return maximum(l.pop(l[0]))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":16689,"func_code":"def maximum(l):\n if len(l) == 0:\n return 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l.pop(l[1]))\n else:\n return maximum(l.pop(l[0]))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 0:\n return 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":29175,"func_code":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n return maximum(l).pop(l[1])\n else:\n return maximum(l).pop(l[0])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = 0\n if len(l) == 1:\n return l[0]\n elif l[0] > l[1]:\n l.pop(1)\n return maximum(l)\n else:\n l.pop(0)\n return maximum(l)\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":39219,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":34381,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":5729,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[n + 1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[1:])\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":35526,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[n + 1:])","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] >= maximum(l[1:]):\n return l[0]\n else:\n return maximum(l[1:])\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":4514,"func_code":"def sumup(n):\n sum = 0\n for x in range(0, n):\n sum += x\n return sum","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n sum = 0\n for x in range(0, n + 1):\n sum += x\n return sum\n","user":"71d3efb1-0433-44ad-83f0-224949653177","academic_year":2017} {"submission_id":34387,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":30693,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":31181,"func_code":"def sumup(n):\n if n == 1:\n return 1\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_1 = sumup(n - 1)\n return n + sum_to_n_1\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":30002,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":38995,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":4000,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":30206,"func_code":"def maximum(n=[]):\n return max(maximum(n))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(n=[]):\n return max(n)\n","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":24348,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n large = a[0]\n if a[i] > a[0]:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return maximum(a)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n large = a[0]\n if a[1] > a[0]:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return maximum(a)\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":15327,"func_code":"def minimum(a):\n if len(a) == 1:\n return n[0]\n else:\n l = minimum(l[1:])\n if l[0] < l:\n return l[0]\n else:\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":13662,"func_code":"def minimum(a):\n if len(a) == 1:\n return n[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return l[0]\n else:\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = minimum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":14611,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = maximum(a[1:])\n if a[0] < l:\n return a[0]\n else:\n return l","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n else:\n l = maximum(a[1:])\n if a[0] > l:\n return a[0]\n else:\n return l\n","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","academic_year":2017} {"submission_id":22020,"func_code":"def sumup(N):\n if N != 0:\n N += N - 1\n return N","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(N):\n if N != 0:\n N += sumup(N - 1)\n return N\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":12304,"func_code":"def minimum(l):\n l = l.sort\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":12251,"func_code":"def minimum(l):\n l = l.sort()\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":41243,"func_code":"def maximum(l):\n return sorted(l)[len() - 1]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n return sorted(l)[len(l) - 1]\n","user":"1ea53a09-863b-4396-bbe3-e75221238368","academic_year":2017} {"submission_id":37461,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] < l[i + 1]:\n i += 1\n l = l[i:]\n else:\n l.pop(i + 1)\n return minimum(l)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] < l[i + 1]:\n i += 1\n l = l[i:]\n else:\n l.pop(i + 1)\n return maximum(l)\n","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","academic_year":2017} {"submission_id":5556,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":8529,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":12579,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","academic_year":2017} {"submission_id":11876,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n f, m = l[0], maximum(l)\n if f > m:\n return f\n else:\n return m","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n f, m = l[0], maximum(l[1:])\n if f > m:\n return f\n else:\n return m\n","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","academic_year":2017} {"submission_id":12634,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":13115,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[0:len(l) \/ 2])\n m2 = minimum(l[len(l) \/ 2:])\n if m1 < m2:\n return m1\n else:\n return m2","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[0:len(l) \/\/ 2])\n m2 = minimum(l[len(l) \/\/ 2:])\n if m1 < m2:\n return m1\n else:\n return m2\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":2095,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = minimum(l[:len(l) \/\/ 2])\n m2 = minimum(l[len(l) \/\/ 2:])\n if m1 > m2:\n return m1\n else:\n return m2","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m1 = maximum(l[:len(l) \/\/ 2])\n m2 = maximum(l[len(l) \/\/ 2:])\n if m1 > m2:\n return m1\n else:\n return m2\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":16913,"func_code":"def sumup(n):\n a = n(n + 1) \/ 2\n return a","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n a = n * (n + 1) \/ 2\n return a\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":10683,"func_code":"def sumup(n):\n if int(n) == 0:\n return '0'\n else:\n return int(n(n + 1) \/ 2)","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if int(n) == 0:\n return 0\n else:\n return int(n * (n + 1) \/ 2)\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":40764,"func_code":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_minus_1 = sumup(n - 1)\n return n + sum_to_n_minus_","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n if n == 0:\n return 0\n sum_to_n_minus_1 = sumup(n - 1)\n return n + sum_to_n_minus_1\n","user":"d05025fd-0a14-4010-acb6-dea38896a651","academic_year":2017} {"submission_id":12764,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n mini = minimun(a[:-1])\n if a[-1] < mini:\n return a[-1]\n else:\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n mini = minimum(a[:-1])\n if a[-1] < mini:\n return a[-1]\n else:\n return mini\n","user":"70a531fa-76d5-4949-ae20-9c7e6db61af8","academic_year":2017} {"submission_id":42384,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = minimum(l[1:])\n return l[0] if l[0] > maxi else maxi","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n maxi = maximum(l[1:])\n return l[0] if l[0] > maxi else maxi\n","user":"0412928d-97c6-46f2-980b-7d98214b9765","academic_year":2017} {"submission_id":4839,"func_code":"def sumup(n):\n total = [int(i) for i in range(0, n)]\n return sum(total)","assignment_id":"sumup","func_name":"sumup","description":"Return the sum of all integers up to n.","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","annotation":"def sumup(n):\n total = [int(i) for i in range(0, n + 1)]\n return sum(total)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":28467,"func_code":"def search(ls, val):\n if ls == []:\n return\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":7638,"func_code":"def search(ls, val):\n if ls == []:\n return\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val):\n if len(ls) == 0:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":10160,"func_code":"def search(ls, letter):\n if ls == []:\n return False\n elif ls[0] == val:\n return True\n else:\n return search(ls[1:], val)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, letter):\n if len(ls) == 0:\n return False\n elif ls[0] == letter:\n return True\n else:\n return search(ls[1:], letter)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":14875,"func_code":"def search(str, letter):\n if str == []:\n return False\n elif str[0] == val:\n return True\n else:\n return search(str[1:], letter)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","academic_year":2017} {"submission_id":24719,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"3bb099c4-4248-4efd-bfe2-3c423b916ce0","academic_year":2017} {"submission_id":2945,"func_code":"def count_letters(s):\n global count\n count += 1\n if not s:\n return count\n s = s[:-1]\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s, count=0):\n if not s:\n return count\n s = s[:-1]\n return 1 + count_letters(s)\n","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","academic_year":2017} {"submission_id":19376,"func_code":"def count_letters(word):\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":9212,"func_code":"def count_letters(word):\n i = 0\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":10188,"func_code":"def count_letters(word):\n if word == '':\n return 0\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(word):\n if word == '':\n return 0\n return 1 + count_letters(word[1:])\n","user":"3386630d-db39-4134-a4bb-b4908e2b7522","academic_year":2017} {"submission_id":42374,"func_code":"def count_letters(s):\n total = 0\n if not s:\n return total\n else:\n for c in s[:-1]:\n total += 1\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if not s:\n return total\n else:\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":1737,"func_code":"def count_letters(s):\n count = 0\n i = 0\n while s[i] != '':\n count += 1\n i += 1\n return count_letters(s)\n return count","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n count = 0\n i = 0\n while i < len(s):\n count += 1\n i += 1\n return count\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":7311,"func_code":"def swap_keys_values(d):\n dictionary = {}\n for key in d:\n dictionary[d[key]] = key\n return dictionary","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","academic_year":2017} {"submission_id":11974,"func_code":"def swap_keys_values(d):\n new_d = {}\n key = sorted(d.keys())\n value = sorted(d.values())\n for i in range(0, len(key) - 1):\n new_d[key[i]] = value[i]\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n key = list(d.keys())\n value = list(d.values())\n for i in range(0, len(key)):\n new_d[value[i]] = key[i]\n return new_d\n","user":"75fca52d-a61c-4d91-946c-d376c5569767","academic_year":2017} {"submission_id":18678,"func_code":"def swap_keys_values(d):\n new_d = {}\n for k, v in d:\n d1[v] = k\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in d.items():\n new_d[v] = k\n return new_d\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":18855,"func_code":"def swap_keys_values(d):\n new_dict = {}\n i = 0\n while i < len(d):\n new_dict[d[0]] = d[1]\n i += 1\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n i = 0\n keys = list(d.keys())\n values = list(d.values())\n while i < len(d):\n new_dict[values[i]] = keys[i]\n i += 1\n return new_dict\n","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","academic_year":2017} {"submission_id":17348,"func_code":"def swap_keys_values(x):\n d = {v: k for k, v in list(a.items())}\n return x","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(x):\n d = {v: k for k, v in list(x.items())}\n return d\n","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","academic_year":2017} {"submission_id":28023,"func_code":"def swap_keys_values(d):\n dic = {}\n for key in d:\n d[key] = value\n d[value] = d[key]\n return dic","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n dic = {}\n for key, value in d.items():\n dic[value] = key\n return dic\n","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":10312,"func_code":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","academic_year":2017} {"submission_id":16548,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":32732,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":19006,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":33533,"func_code":"def search(ls, val, pos):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(ls, val, pos=0):\n if pos == len(ls):\n return False\n elif ls[pos] == val:\n return True\n else:\n return search(ls, val, pos + 1)\n","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2017} {"submission_id":18046,"func_code":"def count_letters(s):\n total = 0\n for c in (s - 1):\n total += 1\n return count_letters(s[:-1]) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":19033,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return 0\n else:\n for c in s[:-1]:\n total += 1\n s = s[c:-1]\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if s == '':\n return 0\n else:\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":21182,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s[:-1]:\n total += 1\n i += 1\n s = s[i:-1]\n return count_letters(s) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s[:-1]:\n total += 1\n return total + 1\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":16045,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n s[i] = 1\n t = s[:i]\n t += s[i]\n t += s[i:]\n s = t\n if not s.isupper():\n total = 0\n for c in s:\n total += c\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":20475,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n s[i] = '1'\n t = s[:i]\n t += s[i]\n t += s[i:]\n s = t\n if not s.isupper():\n total = 0\n for c in s:\n total += int(c)\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":30363,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s:\n if c.isalpha():\n t = s[:i]\n t += '1'\n t += s[i:]\n s = t\n i += 1\n if not s.isupper():\n total = 0\n for c in s:\n total += int(c)\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":11706,"func_code":"def count_letters(s):\n total = 0\n if s == '':\n return total\n else:\n i = 0\n for c in s.lower():\n if c.islower():\n t = s[:i]\n t += '1'\n t += s[i:]\n s = t\n i += 1\n if not s.islower():\n total = 0\n for c in s:\n total += 1\n return total\n else:\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":27032,"func_code":"def count_letters(s):\n count = 0\n if s == '':\n return count\n elif s != '':\n s = list(s)\n s.pop()\n \"\"\"\"\"\".join(s)\n print(count)\n count += 1\n return count_letters(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":39643,"func_code":"def count_letters(s=''):\n return count(s)","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"","user":"82c933c3-be69-41b5-9530-1fe384a7f993","academic_year":2017} {"submission_id":39787,"func_code":"def search(string, letter):\n print(letter in string)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2017} {"submission_id":455,"func_code":"def count_letters(s):\n total = 0\n for c in s[:-1]:\n total += 1\n return count_letters(s[:-1]) + 1","assignment_id":"count_letters","func_name":"count_letters","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":8627,"func_code":"def swap_keys_values(d):\n keys = []\n values = []\n dic = {}\n for v, k in list(d.items()):\n keys.append(k)\n values.append(v)\n i = 0\n while i < len(values):\n dic[values[i]] = keys[i]\n i = i + 1\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n keys = []\n values = []\n dic = {}\n for k, v in list(d.items()):\n keys.append(k)\n values.append(v)\n i = 0\n while i < len(values):\n dic[values[i]] = keys[i]\n i = i + 1\n return dic\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":40049,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print(a)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":3503,"func_code":"def swap_keys_values(d):\n keys = list(d.keys())\n values = list(d.values())\n new = {}\n i = 0\n while i < len(keys):\n new[value[i]] = keys[i]\n i = i + 1\n return new","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n keys = list(d.keys())\n values = list(d.values())\n new = {}\n i = 0\n while i < len(keys):\n new[values[i]] = keys[i]\n i = i + 1\n return new\n","user":"ebcb6801-87f5-4fa5-b252-f89ccb02603a","academic_year":2017} {"submission_id":6626,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print((a, 'boop'))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"e65c3029-39bf-4873-8e7a-599cb24be899","academic_year":2017} {"submission_id":35363,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for k, v in (list(d.keys()), list(d.values())):\n new_dict[v] = k\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for k, v in zip(list(d.keys()), list(d.values())):\n new_dict[v] = k\n return new_dict\n","user":"198db91d-9bcb-463c-838e-d8957f078a4a","academic_year":2017} {"submission_id":37561,"func_code":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor:\n new_dictionary[values] = keys","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor.items():\n new_dictionary[values] = keys\n return new_dictionary\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":29365,"func_code":"def swap_keys_values(d):\n print(d)\n new_dict = {}\n i = 0\n while i < len(d):\n new_dict[d[i]] = d[0]\n i += 1\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n keys = list(d.keys())\n values = list(d.values())\n i = 0\n while i < len(d):\n new_dict[values[i]] = keys[i]\n i += 1\n return new_dict\n","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","academic_year":2017} {"submission_id":40958,"func_code":"def swap_keys_values(d):\n for k, v in list(d.items()):\n k, v = v, k\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in list(d.items()):\n new_d[v] = k\n return new_d\n","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","academic_year":2017} {"submission_id":12754,"func_code":"def swap_keys_values(d):\n d_2 = []\n for entry in list(d.items()):\n u = entry[::-1]\n for k, v in u.split(','):\n d_2[k] = v\n return d_2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d_2 = {}\n for entry in list(d.items()):\n k, v = entry\n d_2[v] = k\n return d_2\n","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":40179,"func_code":"def swap_keys_values(d):\n a = []\n for entry in list(d.items()):\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":19572,"func_code":"def swap_keys_values(d):\n a = []\n for entry in list(d.items()):\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":19666,"func_code":"def swap_keys_values(a):\n for entry in a:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":14051,"func_code":"def swap_keys_values(d):\n a = []\n for entry in d:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":36531,"func_code":"def swap_keys_values(d):\n a = []\n for entry in d:\n u = entry[::-1]\n a.append(u)\n return a","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"213d8254-d887-4b88-8234-2f2edbe536aa","academic_year":2017} {"submission_id":9172,"func_code":"def swap_keys_values(d):\n for key in d:\n key = tmp\n key = d[key]\n d[key] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":20640,"func_code":"def swap_keys_values(d):\n tmp = ''\n for key in d:\n key = tmp\n key = d[key]\n d[key] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":32179,"func_code":"def swap_keys_values(d):\n tmp = ''\n for key in d:\n key = key.split()\n tmp = key[0]\n key[0] = key[1]\n key[1] = tmp\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":34219,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n tmp = key[0]\n key[0] = key[1]\n key[1] = tmp\n return tmp","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":18058,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n return key","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"9d69cd84-adaa-42a8-9530-416762b34c13","academic_year":2017} {"submission_id":38045,"func_code":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}\n return new\n","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","academic_year":2017} {"submission_id":3826,"func_code":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return x","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return d\n","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","academic_year":2017} {"submission_id":3017,"func_code":"def swap_keys_values(d):\n d = {}\n for k, v in list(d.items()):\n d[v] = k\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = {}\n for k, v in list(d.items()):\n new_d[v] = k\n return new_d\n","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","academic_year":2017} {"submission_id":38024,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d:\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d.items():\n new_dict[value] = key\n return new_dict\n","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":9242,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n new_dict[value] = key\n return new_dict\n","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","academic_year":2017} {"submission_id":988,"func_code":"def swap_keys_values(d):\n a2 = {}\n a3 = {}\n ar = sorted(list(d.items()), reverse=True)\n for k, v in ar:\n a2[v] = k\n ar2 = sorted(list(a2.items()), reverse=True)\n for k, v in ar2:\n a3[k] = v\n return a3","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","academic_year":2017} {"submission_id":38562,"func_code":"def swap_keys_values(d):\n a2 = {}\n a3 = {}\n ar = sorted(list(d.items()), reverse=True)\n for k, v in ar:\n a2[v] = k\n ar2 = sorted(list(a2.items()), reverse=True)\n for k, v in ar2:\n a3[k] = v\n return a3","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","academic_year":2017} {"submission_id":34366,"func_code":"def swap_keys_values():\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n for e in oldkeys:\n swappeddict[oldvlaues] = oldkeys\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n for k, v in zip(oldkeys, oldvalues):\n swappeddict[v] = k\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":38765,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n for e in oldkeys:\n swappeddict[oldvalues] = oldkeys\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n for k, v in zip(oldkeys, oldvalues):\n swappeddict[v] = k\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":32144,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":38624,"func_code":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(list(dictionary.keys()))\n oldvalues.append(list(dictionary.values()))\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dictionary):\n oldkeys = []\n oldvalues = []\n swappeddict = {}\n for key in dictionary:\n oldkeys.append(key)\n oldvalues.append(dictionary[key])\n i = 0\n while i < len(oldkeys):\n swappeddict[oldvalues[i]] = oldkeys[i]\n i = i + 1\n return swappeddict\n","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","academic_year":2017} {"submission_id":15295,"func_code":"def swap_keys_values(d):\n swap1 = {}\n swap2 = {}\n swapsorted = sorted(list(d.items()), reverse=True)\n for k, v in swapsorted:\n swap1[v] = k\n swapsorted2 = sorted(list(swap1.items()), reverse=True)\n for k, v in swapsorted2:\n swap2[k] = v\n return swap2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":38875,"func_code":"def swap_keys_values(d):\n swap1 = {}\n swap2 = {}\n swapsorted = sorted(list(d.items()), reverse=True)\n for k, v in swapsorted:\n swap1[v] = k\n swapsorted2 = sorted(list(swap1.items()), reverse=True)\n for k, v in swapsorted2:\n swap2[k] = v\n return swap2","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","academic_year":2017} {"submission_id":37103,"func_code":"def swap_keys_values():\n new_dic = {}\n for key in dic:\n if dic[key] not in new_dic:\n new_dic[dic[key]] = key\n return new_dic","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dic):\n new_dic = {}\n for key in dic:\n new_dic[dic[key]] = key\n return new_dic\n","user":"f734d662-6b82-46af-93a9-92b490e12476","academic_year":2017} {"submission_id":35788,"func_code":"def minimum(n):\n print(n)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":15807,"func_code":"def minimum(l=[]):\n if len(l) == 0:\n return l\n lowest = 0\n i = 0\n while i < len(l):\n if i > lowest:\n lowest = i\n return lowest","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n lowest = l[0]\n i = 0\n while i < len(l):\n if l[i] < lowest:\n lowest = l[i]\n i += 1\n return lowest\n","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":19432,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","academic_year":2017} {"submission_id":12511,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n small = a[1]\n else:\n a.remove(a[0])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":16483,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < minimum(a[1:]):\n return a[0]\n else:\n return minimum(a[1:])\n","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","academic_year":2017} {"submission_id":13046,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n return minimum(l[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n min = minimum(l[1:])\n return l[0] if l[0] < min else min\n","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","academic_year":2017} {"submission_id":17597,"func_code":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[0:]):\n return l[0]\n else:\n return minimum(l[:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[1:]):\n return l[0]\n else:\n return minimum(l[1:])\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":9581,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return minimum(list.pop())","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return list[0]\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":2031,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n elif list[0] < minimum(list[1:]):\n return list[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n elif list[0] < minimum(list[1:]):\n return list[0]\n else:\n return minimum(list[1:])\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":11947,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.append(a[0])\n return minmum(a[1:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","academic_year":2017} {"submission_id":16872,"func_code":"def minimum(l):\n if len(l) == 0:\n return 0\n lowest = 100\n for line in l:\n if line < lowest:\n lowest = line\n return minimum(lowest)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n lowest = l[0]\n for line in l:\n if line < lowest:\n lowest = line\n return lowest\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":20481,"func_code":"def minimum(l):\n print(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":17780,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n l = min(l[0], mininum(l[1:]))\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n l = min(l[0], minimum(l[1:]))\n return l\n","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","academic_year":2017} {"submission_id":12282,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n elif l[0] < l[1]:\n l.remove(l[0])\n return minimum(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[0])\n elif l[0] <= l[1]:\n l.remove(l[1])\n return minimum(l)\n","user":"9f673df6-fcfd-4d07-b0dd-1f553c38f25b","academic_year":2017} {"submission_id":34316,"func_code":"def minimum(l):\n l = sort(l)\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":8341,"func_code":"def minimum(l):\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":21875,"func_code":"def minimum(l):\n l = l.sort(key=None)\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort(key=None)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":20650,"func_code":"def minimum(l):\n l = l.sort(key=min())\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":37517,"func_code":"def minimum(l):\n return sorted(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n return sorted(l)[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":18495,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","user":"9ae0539b-3842-4209-9c3e-252c74db087e","academic_year":2017} {"submission_id":15677,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n return l.remove(large)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n l.remove(large)\n return minimum(l)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":19534,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n return minimum(l.remove(large))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n large = l[0]\n for num in l:\n if num > large:\n large = num\n l.remove(large)\n return minimum(l)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":18631,"func_code":"def minimum(l, n):\n if n == 0:\n return l[0]\n min = minimum(l[1:], n - 1)\n if l[0] < min:\n return l[0]\n else:\n return min","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":14069,"func_code":"def minimum(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","academic_year":2017} {"submission_id":24960,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n small = a[0]\n if a[1] < small:\n small = a[1]\n else:\n a.remove(a[0])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n small = a[0]\n if a[1] > small:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)\n","user":"4a1f2726-b713-40f0-b544-9de55d617a12","academic_year":2017} {"submission_id":32989,"func_code":"def minimum(l=[]):\n if len(l) == 0:\n return l\n lowest = 0\n i = 0\n j = i + 1\n while i < len(l):\n if i < j[i]:\n j[i] = i\n return i","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":21725,"func_code":"def minimum(l):\n print('1\\n3\\n6\\n4')","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","academic_year":2017} {"submission_id":2494,"func_code":"def minimum(n):\n if len(n) == 1:\n return n\n if n[0] > minimum(n[1:]):\n return n + 1\n else:\n return minimum(n - 1)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < minimum(n[1:]):\n return n[0]\n else:\n return minimum(n[1:])\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":28358,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n minimum = minimum(l[1])\n if l[0] < minimum:\n l.pop(minimum)\n else:\n l.pop(l[0])\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n mini = minimum(l[1:])\n if l[0] > mini:\n return mini\n return l[0]\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":22775,"func_code":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[:]):\n return l[0]\n else:\n return minimum(l[:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l=[]):\n if len(l) == 1:\n return l[0]\n if l[0] < minimum(l[1:]):\n return l[0]\n else:\n return minimum(l[1:])\n","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","academic_year":2017} {"submission_id":2348,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n max_value = max(list)\n return list.remove(max_value)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n max_value = max(list)\n list.remove(max_value)\n return minimum(list)\n","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","academic_year":2017} {"submission_id":21722,"func_code":"def minimum(l):\n lowest = 10000000000\n if l == []:\n return lowest\n if int(l[0]) < lowest:\n lowest = int(l[0])\n return minimum(l[0]).pop","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2017} {"submission_id":14211,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":27727,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":28377,"func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] > min_ret else min_ret","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n min_ret = minimum(n[1:])\n return n[0] if n[0] < min_ret else min_ret\n","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","academic_year":2017} {"submission_id":9182,"func_code":"def minimum(l):\n mini = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":25565,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":39749,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if l[i] < mini:\n mini = l[i]\n i += 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":4540,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) < mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) < mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":8157,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":221,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return l[i]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i < len(l):\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":41708,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if int(l[i]) <= mini:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":22886,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":13264,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":28641,"func_code":"def minimum(l):\n mini = 0\n i = 0\n while i < len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n mini = l[0]\n i = 0\n while i <= len(l) - 1:\n if mini > l[i]:\n mini = int(l[i])\n i = i + 1\n return mini\n","user":"9dea5530-0f82-4127-b25f-20c784224a03","academic_year":2017} {"submission_id":13936,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n small = a[i]\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n else:\n small = a[0]\n if a[1] < small:\n a.remove(a[0])\n else:\n a.remove(a[1])\n return minimum(a)\n","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","academic_year":2017} {"submission_id":7246,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":24555,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","academic_year":2017} {"submission_id":31463,"func_code":"def minimum(l):\n l = l.sort()\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":22521,"func_code":"def minimum(l):\n sorted(l)\n return l","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","academic_year":2017} {"submission_id":23105,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n i = 0\n if l[i] > l[i + 1]:\n i = i + 1\n l = l[i]\n else:\n l.pop(i + 1)\n return minimum(l)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","academic_year":2017} {"submission_id":10456,"func_code":"def minimum(l, min):\n if not l:\n return []\n return minimum(l[1:], l[0] if l[0] < val else val)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":13228,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":23237,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017} {"submission_id":23959,"func_code":"def minimum(l, n=0):\n min = minimum(l[1:], n - 1)\n if l[0] < min:\n return l[0]\n else:\n return min","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n min = minimum(l[1:])\n if l[0] < min:\n return l[0]\n else:\n return min\n","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","academic_year":2017}