{"submission_id":24086,"assignment_id":"maximum_102.py_ca117_maximum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936819000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9619,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766785000,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41825,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766818000,"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())","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: printing-instead-of-returning, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39634,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766830000,"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())","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: printing-instead-of-returning, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25576,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766846000,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22381,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766846000,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30666,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510836350000,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11676,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510836450000,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","func_name":"reverse","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']","module":"ca277","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21734,"assignment_id":"reverse.py_ca277_reverse","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1510839123000,"func_code":"def reverse(a):\n rev = []\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-range-in-for-in-range-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":947,"assignment_id":"reverse.py_ca277_reverse","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1510839148000,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-range-in-for-in-range-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35613,"assignment_id":"reverse.py_ca277_reverse","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1511191465000,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-temp-assignment-in-swap","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24622,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789017000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38930,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789398000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31881,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789398000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40522,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511871509000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15057,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511871927000,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: printing-instead-of-returning, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26332,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511872047000,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37211,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872176000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-index-in-negative-lookup, missing-return, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10625,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872197000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-index-in-negative-lookup, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11388,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872218000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20830,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511872238000,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35829,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872327000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27306,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872335000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: off-by-one-in-negative-lookup, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31988,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872339000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32699,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872351000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42328,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872382000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution, missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":518,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872394000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31082,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872438000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36140,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872455000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution, missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16672,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872599000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39465,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872634000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25940,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511872823000,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a[i] = a[len(a) - 1 - i]\n i += 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: overriding-values, not-using-swap, not-using-a-temporary-list, maybe-assuming-swap-in-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42121,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511872860000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13956,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511872873000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-function-name, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37723,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873085000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16600,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873114000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32086,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873224000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check, iterating-whole-list-while-swapping, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15432,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873226000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26853,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873271000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40900,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873276000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14210,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873334000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21091,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873366000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, iterating-whole-list-while-swapping, missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7167,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873403000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26262,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873496000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34696,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511873512000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4104,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873545000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping, incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34278,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873558000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6321,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873565000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38521,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873614000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9977,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873614000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20857,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873981000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18861,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511874299000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22250,"assignment_id":"func_reverse.py_ca116_reverse","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1511875047000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-temporary-value-initiation, missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":29294,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875240000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35714,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511875263000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-function-parameter-in-function-call, flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10271,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875402000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16990,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875402000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4273,"assignment_id":"func_reverse.py_ca116_reverse","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1511876042000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":33110,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511876192000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41496,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877077000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27843,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877121000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2306,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877121000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7077,"assignment_id":"func_reverse.py_ca116_reverse","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1511877624000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1511877669000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5061,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1511877669000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26517,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511877751000,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: printing-instead-of-returning, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30774,"assignment_id":"func_reverse.py_ca116_reverse","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1511877770000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: wrong-loop-variable","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20795,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511877786000,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2943,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511877837000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38330,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511877837000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20419,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878057000,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25200,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878082000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20414,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878096000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20173,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878119000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21707,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878190000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40493,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878207000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index, iterating-whole-list-while-swapping, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19652,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878310000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24060,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878310000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22751,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878314000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4012,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878314000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13539,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878328000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-loop-variable-initiation, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35196,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878385000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17586,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878449000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2961,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878449000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36169,"assignment_id":"func_reverse.py_ca116_reverse","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1511878474000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32992,"assignment_id":"func_reverse.py_ca116_reverse","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1511878474000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36268,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878500000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17833,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878532000,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18393,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878534000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8934,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878583000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping, index-overbound","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15107,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878643000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13145,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878697000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4854,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878712000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31941,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878712000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21669,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878735000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24058,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878735000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25857,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878752000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20456,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878768000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14727,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511878777000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24889,"assignment_id":"func_reverse.py_ca116_reverse","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1511878777000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22145,"assignment_id":"func_reverse.py_ca116_reverse","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1511878787000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13119,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878800000,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20782,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878842000,"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)","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16720,"assignment_id":"func_reverse.py_ca116_reverse","user":"6fb1b046-1d89-4162-8437-722d44e22f50","date":1511878869000,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14993,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","date":1511878930000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30152,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","date":1511878930000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26323,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1511878946000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25670,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1511878946000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5036,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511878982000,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41303,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879003000,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":28597,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879048000,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5498,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879066000,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2771,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879104000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31092,"assignment_id":"func_reverse.py_ca116_reverse","user":"09e5a143-ae3a-4611-8cfa-45d52e07b2c6","date":1511879136000,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30427,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879143000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40170,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879143000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7298,"assignment_id":"func_reverse.py_ca116_reverse","user":"6fb1b046-1d89-4162-8437-722d44e22f50","date":1511879157000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-temp-assignment-in-swap","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34427,"assignment_id":"func_reverse.py_ca116_reverse","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1511879326000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: typo, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1535,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511879576000,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17254,"assignment_id":"func_reverse.py_ca116_reverse","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1511879622000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: typo","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4234,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511879676000,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11366,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879735000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, wrong-loop-variable","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6750,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511879736000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-swap-index, incorrect-adjustment-of-temporary-value, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36012,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879765000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":553,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879765000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9605,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879796000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17744,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511879819000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-swap-index, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31143,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511879878000,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30936,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879890000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36342,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879890000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13345,"assignment_id":"func_reverse.py_ca116_reverse","user":"e446f262-2121-4c37-a09e-a856c55efaca","date":1511879906000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34947,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511879906000,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12060,"assignment_id":"func_reverse.py_ca116_reverse","user":"e446f262-2121-4c37-a09e-a856c55efaca","date":1511879906000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38358,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511879945000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-loop-variable-initiation, missing-function-parameter-in-function-call, missing-return, incorrect-indentation-in-loop-value, invalid-array-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13371,"assignment_id":"func_reverse.py_ca116_reverse","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1511879950000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36621,"assignment_id":"func_reverse.py_ca116_reverse","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1511879950000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1425,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880104000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index, incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37351,"assignment_id":"func_reverse.py_ca116_reverse","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1511880106000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5788,"assignment_id":"func_reverse.py_ca116_reverse","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1511880106000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20140,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880131000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-temp-variable-usage","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17853,"assignment_id":"func_reverse.py_ca116_reverse","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","date":1511880165000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34004,"assignment_id":"func_reverse.py_ca116_reverse","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","date":1511880165000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36122,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880168000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":3797,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880168000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12752,"assignment_id":"func_reverse.py_ca116_reverse","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1511880222000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15472,"assignment_id":"func_reverse.py_ca116_reverse","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1511880222000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13484,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880227000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":28691,"assignment_id":"func_reverse.py_ca116_reverse","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1511880233000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41477,"assignment_id":"func_reverse.py_ca116_reverse","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1511880233000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40898,"assignment_id":"func_reverse.py_ca116_reverse","user":"36685ead-53f8-40af-a908-4c048278dc6b","date":1511880257000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":547,"assignment_id":"func_reverse.py_ca116_reverse","user":"36685ead-53f8-40af-a908-4c048278dc6b","date":1511880257000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39819,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880292000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9359,"assignment_id":"func_reverse.py_ca116_reverse","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1511880342000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4453,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bf8435-64be-48cb-be81-139956827989","date":1511880387000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30178,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bf8435-64be-48cb-be81-139956827989","date":1511880387000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8437,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511880406000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30470,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511880406000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21856,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880426000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-loop-variable-initiation, missing-return, missing-function-parameter-in-function-call, invalid-array-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17782,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511880479000,"func_code":"def reverse(a):\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17728,"assignment_id":"func_reverse.py_ca116_reverse","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1511880507000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":23086,"assignment_id":"func_reverse.py_ca116_reverse","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1511880507000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32960,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880516000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19315,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880544000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13063,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880562000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16967,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880562000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41902,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880572000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-function-parameter-in-function-call, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6648,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880580000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-loop-variable-initiation, incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10648,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880590000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26090,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880590000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2388,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880607000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12726,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880664000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5424,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880687000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34046,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880693000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11219,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880702000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-use-of-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38068,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880709000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14169,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880709000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2110,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511880720000,"func_code":"def reverse(a):\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8997,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880726000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22867,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880726000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7607,"assignment_id":"func_reverse.py_ca116_reverse","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","date":1511880818000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42462,"assignment_id":"func_reverse.py_ca116_reverse","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","date":1511880818000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32054,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880866000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7666,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880866000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13597,"assignment_id":"func_reverse.py_ca116_reverse","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","date":1511880971000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11295,"assignment_id":"func_reverse.py_ca116_reverse","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","date":1511880971000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32551,"assignment_id":"func_reverse.py_ca116_reverse","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1511881208000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19539,"assignment_id":"func_reverse.py_ca116_reverse","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1511881208000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15113,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511881566000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# incorrect-comparison-in-loop","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12312,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511881807000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39711,"assignment_id":"func_reverse.py_ca116_reverse","user":"536d6075-5a50-4346-89ff-5e21df057756","date":1511882309000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-temp-variable-usage","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21719,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511882373000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35405,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511882439000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation, invalid-list-concatenation, not-using-a-temporary-list","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38961,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511882525000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-list-concatenation, missing-list-append","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24993,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511882601000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41948,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511882926000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13008,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511885700000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, mismatch-between-parameter-and-variable-names","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1004,"assignment_id":"func_reverse.py_ca116_reverse","user":"825987dd-47a8-4023-b124-16b318935de3","date":1511888496000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19480,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511888602000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6619,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511888602000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":23108,"assignment_id":"func_reverse.py_ca116_reverse","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1511895071000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1195,"assignment_id":"func_reverse.py_ca116_reverse","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1511895071000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39886,"assignment_id":"func_reverse.py_ca116_reverse","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","date":1511899374000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7733,"assignment_id":"func_reverse.py_ca116_reverse","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","date":1511899374000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20634,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511900460000,"func_code":"def reverse(a):\n a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20771,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511901482000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32940,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511901482000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1095,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511902813000,"func_code":"def reverse(a):\n a = a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9155,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511907892000,"func_code":"def reverse(a):\n a[::-1]\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36535,"assignment_id":"func_reverse.py_ca116_reverse","user":"0964a543-93db-460b-a0c5-d0c94fea250f","date":1511910999000,"func_code":"def reverse(a):\n a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5042,"assignment_id":"func_reverse.py_ca116_reverse","user":"0964a543-93db-460b-a0c5-d0c94fea250f","date":1511910999000,"func_code":"def reverse(a):\n a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15424,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511952967000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20546,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511953057000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":942,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511953057000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27197,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37837,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21445,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35368,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512004800000,"func_code":"def reverse(a):\n print(a[::-1])\n return","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment, missing-return-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39111,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005005000,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20425,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005050000,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14360,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005213000,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17073,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005243000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14572,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005281000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9708,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005417000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1268,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005473000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39097,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005490000,"func_code":"def reverse(a):\n a[::-1]\n return","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17480,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005569000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7879,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005569000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6774,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512051816000,"func_code":"def reverse(a):\n a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18550,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512051870000,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35191,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512052068000,"func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: returning-none-by-accident, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21992,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512052068000,"func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: returning-none-by-accident, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9418,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1515779045000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31940,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1515779157000,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17999,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027408000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4585,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027439000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1771,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027632000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16200,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027661000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31681,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027714000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28960,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027768000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40541,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027888000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31005,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027933000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36437,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521029822000,"func_code":"def search(str, letter):\n for letters in str:\n if letters in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-loop, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33668,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521029855000,"func_code":"def search(str, letter):\n for letters in str:\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7308,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030008000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2198,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030090000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16988,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030097000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30911,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030116000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1107,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030135000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30283,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030166000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":28612,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030227000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n return letter in str\n","comments":"# LH # tags: wonky-solution. nonsense-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21413,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030245000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3326,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":25405,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":11650,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":20207,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38859,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38869,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19569,"assignment_id":"iterative07.py_ca278_search","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1521030262000,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17377,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030422000,"func_code":"def search(letter):\n str = input()\n letter = input()\n if letter in str:\n print(True)\n else:\n print(false)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: asking-user-input, print-instead-of-return, syntax-error, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9908,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030437000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41667,"assignment_id":"iterative07.py_ca278_search","user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":1521030450000,"func_code":"def search(str, letter):\n for letter in str:\n return True","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, search_letter):\n for letter in str:\n if letter == search_letter:\n return True\n return False\n","comments":"# LH # tags: wonky-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":961,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030476000,"func_code":"def search(letter):\n str = input()\n if letter in str:\n print(True)\n else:\n print(false)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, asking-user-input, syntax-error","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27288,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521030480000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8404,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030508000,"func_code":"def search(letter):\n str = input()\n if letter in str:\n return True\n else:\n return false","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: asking-user-input, syntax-error, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37053,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030513000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9879,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030604000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":32040,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030625000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42412,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030648000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9867,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521030649000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36164,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521030687000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4736,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030720000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":12698,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030727000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31921,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030785000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":14528,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030785000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2574,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030837000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38730,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030993000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9206,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26977,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20548,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20198,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031104000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":3143,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031111000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17711,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031127000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4420,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031169000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6157,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031197000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35991,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031227000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19679,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031234000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":23346,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031245000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31949,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031271000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35031,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031351000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39255,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031393000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24009,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031407000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41348,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031417000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35200,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031422000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13284,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031465000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13686,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031509000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4441,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521031903000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2549,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521031981000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30776,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031985000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38508,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032005000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5286,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032054000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17886,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13900,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40302,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2410,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032113000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16152,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032130000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":496,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032162000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8898,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032214000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23423,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26101,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5446,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26738,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032336000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16400,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032477000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19028,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032477000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38773,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032539000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41422,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032555000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36064,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032591000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34734,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032645000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29301,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032717000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35101,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032860000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25419,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":25874,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":19377,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":21089,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032874000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16885,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032903000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10621,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032904000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31904,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521033118000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1269,"assignment_id":"iterative07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521033140000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1097,"assignment_id":"iterative07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521033140000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30112,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27285,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21361,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9229,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18997,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23013,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2665,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033466000,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25343,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033478000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13253,"assignment_id":"iterative07.py_ca278_search","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1521033538000,"func_code":"def search(str, letter):\n for letter in str:\n if letter in str:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: extra-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39946,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033567000,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n if letter not in str:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n if letter not in str:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41855,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033584000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35164,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033587000,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14610,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033648000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32609,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033711000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1885,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033711000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":5916,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":27243,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33920,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":4030,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23435,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033742000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7032,"assignment_id":"iterative07.py_ca278_search","user":"e5dedf13-336d-484f-81bc-d7898f0f002e","date":1521033749000,"func_code":"def search(str, letter):\n if letter in str:\n return true\n else:\n return false","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: syntax-error","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41456,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521033820000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6023,"assignment_id":"recursive07.py_ca278_search","user":"1952771b-859e-46c9-8146-448dc8ef5870","date":1521034018000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11310,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034076000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41955,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034137000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32350,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32661,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14257,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153000,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26367,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034738000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20591,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26352,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5065,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36247,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521034889000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37119,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521034889000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42234,"assignment_id":"recursive07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521035156000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list. wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19928,"assignment_id":"recursive07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521035491000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14053,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521035512000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9716,"assignment_id":"recursive07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521035609000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26883,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036288000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8532,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036302000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24139,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036350000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2728,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036653000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":472,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521036961000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16780,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037286000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1620,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037300000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1046,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521037841000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21667,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521037926000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29230,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037937000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36476,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037953000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11053,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037954000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31699,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037954000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14929,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038122000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11733,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521038193000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22281,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23149,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39602,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34428,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521039673000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11889,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521040978000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14879,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041017000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37649,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041045000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8200,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32899,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29598,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40936,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048125000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15004,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048156000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2176,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048172000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24727,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048192000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29293,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36483,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21392,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6737,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052181000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30594,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052292000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19927,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052481000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19397,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052550000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15299,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052577000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18424,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057311000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14736,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057437000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33512,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057541000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37215,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057636000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26840,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057912000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24656,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10663,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15548,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30855,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070498000,"func_code":"def search(str):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4121,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070538000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38591,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070572000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34995,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070977000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21480,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071001000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21736,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071103000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3976,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071165000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24428,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071183000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17751,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14959,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13214,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37824,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141038000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return, asking-user-input","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30850,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141068000,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29051,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141128000,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21204,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141147000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29490,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141441000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14826,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141496000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23940,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35111,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24469,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1544,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521150985000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14648,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151135000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10452,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151135000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13186,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151330000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23719,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37348,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2117,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2503,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214110000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7519,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214139000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1692,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214157000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24343,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214363000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40661,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214388000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32569,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214429000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11774,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214451000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18549,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214469000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5883,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214533000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27064,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214596000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8729,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214621000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6209,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214685000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34481,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215055000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23655,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215135000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6520,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215366000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12975,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215366000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4986,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1039,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3286,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32154,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393596000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20835,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393722000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12876,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393835000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23689,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393873000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6759,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394069000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13136,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394184000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3521,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394201000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17117,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394222000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28745,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394303000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37966,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394383000,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15796,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394686000,"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","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution, wonky-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5977,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521395459000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list. wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24930,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521395513000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22668,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521396397000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8471,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521396397000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34658,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521481353000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-base-case","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24483,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521481375000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-base-case","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21440,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521484814000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8976,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488044000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":23509,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488302000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35274,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488302000,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":20620,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521490794000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8994,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521490945000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17797,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491017000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31071,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491043000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25963,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491060000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2688,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491785000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20083,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492222000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, print-instead-of-return, missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37266,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492361000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-comparison, wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8061,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492402000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35992,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492527000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38708,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492551000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32648,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492560000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27011,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492588000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39633,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492591000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5878,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492817000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":49,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492852000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20491,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492865000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27930,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492913000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30199,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492948000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26036,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493087000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7464,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493267000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38412,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493303000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34055,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493363000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42327,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493392000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37986,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521493435000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35782,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521493435000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1564,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493462000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31240,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493598000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35898,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493622000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23397,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493814000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32419,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493898000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20123,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493942000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31486,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494523000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18616,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494596000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30425,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494651000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24760,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494699000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12078,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495223000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28770,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495276000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37392,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495965000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22043,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495965000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17295,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498676000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41430,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498703000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20068,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498723000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32307,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498741000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37964,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498769000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16766,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498802000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33102,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498896000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41082,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498919000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15662,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498971000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14589,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499001000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19235,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499026000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11754,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499060000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35672,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499453000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37589,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499461000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19845,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499473000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15112,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499506000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13671,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499560000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34086,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499597000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24732,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499697000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30920,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499697000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4766,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499804000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20242,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499829000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33659,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499866000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16561,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499866000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14926,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19099,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25389,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10293,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38421,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29008,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5075,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506878000,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13079,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506943000,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":213,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974000,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11527,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974000,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5918,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974000,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26621,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540389000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39760,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540439000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40506,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31945,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27573,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19318,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5215,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2417,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42017,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521541259000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8935,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521541259000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17827,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541668000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17317,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541720000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37027,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521541722000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19079,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541734000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22359,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521541744000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7960,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542019000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35694,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542159000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7090,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542191000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6198,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542209000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31959,"assignment_id":"iterative07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542218000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6714,"assignment_id":"iterative07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542218000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23497,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542228000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40575,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542240000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21545,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542261000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42023,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542287000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25064,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542317000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12604,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542347000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23030,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542392000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37789,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542409000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32266,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542454000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10153,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6837,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36016,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2280,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542531000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2374,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12441,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27766,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32965,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542573000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23027,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542584000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36507,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542601000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37083,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542679000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34921,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2973,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36862,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38288,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542710000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30226,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542714000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: print-instead-of-return, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28014,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542739000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-value, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13524,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6608,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42116,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":437,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29818,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16396,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780000,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24771,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542793000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25365,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26764,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11490,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9097,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542942000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6923,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542942000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20408,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543508000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11480,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543558000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16425,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543558000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26503,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521562698000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1507,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625698000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution-","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13361,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625749000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41633,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625773000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35050,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625859000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15233,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625923000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25186,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625973000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33772,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626177000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25004,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626208000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4671,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626241000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39590,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626316000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30478,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626428000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31942,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626465000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22923,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626465000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15891,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28554,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39263,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31632,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8884,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38471,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10465,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31631,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32704,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32211,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649060000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10201,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649093000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12134,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649205000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15269,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649257000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37175,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649536000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36042,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649536000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41547,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850630000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11065,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850698000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18948,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850698000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28494,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521987631000,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7359,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521988070000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3221,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989511000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31234,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989580000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31278,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989580000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12076,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141135000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1976,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141799000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19834,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141971000,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30365,"assignment_id":"iterative07.py_ca278_search","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":1522255177000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16539,"assignment_id":"iterative07.py_ca278_search","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":1522255177000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10139,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35022,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16281,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097000,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26462,"assignment_id":"iterative07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258163000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32578,"assignment_id":"iterative07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258163000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12650,"assignment_id":"recursive07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258225000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26856,"assignment_id":"recursive07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258225000,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39984,"assignment_id":"sumup_102.py_ca117_sumup","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522763427000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":39391,"assignment_id":"sumup_102.py_ca117_sumup","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522763501000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":37109,"assignment_id":"sumup_102.py_ca117_sumup","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522764208000,"func_code":"def sumup(n):\n total = 0\n for i in range(n):\n total + i\n return total + n","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n total = 0\n for i in range(n):\n total = total + i\n return total + n\n","comments":"# tags: missing-value-assignment","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":40556,"assignment_id":"sumup_102.py_ca117_sumup","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1522764302000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":4572,"assignment_id":"sumup_102.py_ca117_sumup","user":"d030c365-0c70-41fc-bf99-b5270c6b8c31","date":1522764798000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":10017,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765093000,"func_code":"def maximum(l):\n sorted(l)\n return l(len(l) - 1)\n return maximum(l)","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n l = sorted(l)\n return l[len(l) - 1]\n","comments":"# KC","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":14087,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765149000,"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)","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n l = sorted(l)\n return l[-1]\n","comments":"# JL# tags: partial-solution","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":23641,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765171000,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: 1-size-list error","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9072,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765171000,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: 1-size-list error","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":12366,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522765371000,"func_code":"def minimum(n):\n print(min(n))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n return min(n)\n","comments":"# KC # printing-instead-of-return","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11625,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0af1b08-7254-49f0-8cc4-d63a85c9199d","date":1522766115000,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong variable usage - mixing variables","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24784,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766156000,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":736,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766231000,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":10082,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766546000,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":944,"assignment_id":"maximum_102.py_ca117_maximum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766662000,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":41531,"assignment_id":"maximum_102.py_ca117_maximum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766705000,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: typo, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":7722,"assignment_id":"maximum_102.py_ca117_maximum","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1522766936000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":19956,"assignment_id":"maximum_102.py_ca117_maximum","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1522767034000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34678,"assignment_id":"maximum_102.py_ca117_maximum","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1522768001000,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":25488,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770451000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":34281,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770467000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30514,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770606000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":13319,"assignment_id":"sumup_102.py_ca117_sumup","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522770625000,"func_code":"def sumup(x):\n x = x + sumup(x)\n return x","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(x):\n if x == 0:\n return 0\n x = x + sumup(x - 1)\n return x\n","comments":"# tags: infinite-recursion, not-guarding-for-zero, missing-reducing-in-recursion","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":28816,"assignment_id":"maximum_102.py_ca117_maximum","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522772425000,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":37410,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775843000,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16938,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775874000,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":14655,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775940000,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":21903,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776006000,"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]))","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16689,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776062000,"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]))","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":29175,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776162000,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":39219,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776214000,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","comments":"# JL# tags: incorrect initialization","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34381,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776214000,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","comments":"# JL# tags: incorrect initialization","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":5729,"assignment_id":"maximum_102.py_ca117_maximum","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1522860266000,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":35526,"assignment_id":"maximum_102.py_ca117_maximum","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1522860266000,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4514,"assignment_id":"sumup_102.py_ca117_sumup","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1522867725000,"func_code":"def sumup(n):\n sum = 0\n for x in range(0, n):\n sum += x\n return sum","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n sum = 0\n for x in range(0, n + 1):\n sum += x\n return sum\n","comments":"# tags: incorrect-upper-bound-use-in-range","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":34387,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30693,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":31181,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022000,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30002,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938156000,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: return type issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":38995,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938296000,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: issues with return types","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4000,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938296000,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: issues with return types","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":30206,"assignment_id":"maximum_102.py_ca117_maximum","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1523113078000,"func_code":"def maximum(n=[]):\n return max(maximum(n))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(n=[]):\n return max(n)\n","comments":"# JL# tags: infinite recursion, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":24348,"assignment_id":"maximum_102.py_ca117_maximum","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1523314419000,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: typo, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":15327,"assignment_id":"minimum_102.py_ca117_minimum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523364816000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13662,"assignment_id":"minimum_102.py_ca117_minimum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523364876000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14611,"assignment_id":"maximum_102.py_ca117_maximum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523365003000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: conditional error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":22020,"assignment_id":"sumup_102.py_ca117_sumup","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368024000,"func_code":"def sumup(N):\n if N != 0:\n N += N - 1\n return N","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(N):\n if N != 0:\n N += sumup(N - 1)\n return N\n","comments":"# tags: missing-recursive-function-call","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":12304,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368728000,"func_code":"def minimum(l):\n l = l.sort\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12251,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368758000,"func_code":"def minimum(l):\n l = l.sort()\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":41243,"assignment_id":"maximum_102.py_ca117_maximum","user":"1ea53a09-863b-4396-bbe3-e75221238368","date":1523369330000,"func_code":"def maximum(l):\n return sorted(l)[len() - 1]","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n return sorted(l)[len(l) - 1]\n","comments":"# JL# tags: typo","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":37461,"assignment_id":"maximum_102.py_ca117_maximum","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1523372787000,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":5556,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404000,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8529,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404000,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12579,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404000,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11876,"assignment_id":"maximum_102.py_ca117_maximum","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1523537892000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":12634,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523625102000,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: return type issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":13115,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523630702000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-operand","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2095,"assignment_id":"maximum_102.py_ca117_maximum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523630921000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16913,"assignment_id":"sumup_102.py_ca117_sumup","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523658105000,"func_code":"def sumup(n):\n a = n(n + 1) \/ 2\n return a","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n a = n * (n + 1) \/ 2\n return a\n","comments":"# tags: missing-multiplication-symbol-from-formula","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":10683,"assignment_id":"sumup_102.py_ca117_sumup","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523658204000,"func_code":"def sumup(n):\n if int(n) == 0:\n return '0'\n else:\n return int(n(n + 1) \/ 2)","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n if int(n) == 0:\n return 0\n else:\n return int(n * (n + 1) \/ 2)\n","comments":"# tags: invalid-return-type, missing-multiplication-symbol-from-formula","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":40764,"assignment_id":"sumup_102.py_ca117_sumup","user":"d05025fd-0a14-4010-acb6-dea38896a651","date":1523659243000,"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_","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: typo","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":12764,"assignment_id":"minimum_102.py_ca117_minimum","user":"70a531fa-76d5-4949-ae20-9c7e6db61af8","date":1523660092000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC # typo","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":42384,"assignment_id":"maximum_102.py_ca117_maximum","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523660680000,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4839,"assignment_id":"sumup_102.py_ca117_sumup","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523878299000,"func_code":"def sumup(n):\n total = [int(i) for i in range(0, n)]\n return sum(total)","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n total = [int(i) for i in range(0, n + 1)]\n return sum(total)\n","comments":"# tags: incorrect-upper-bound-use-in-range","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":28467,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1524762569000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7638,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1524762590000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10160,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1525094738000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-variable-name, compare-string-to-empty-list","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14875,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1525095139000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24719,"assignment_id":"iterative07.py_ca278_search","user":"3bb099c4-4248-4efd-bfe2-3c423b916ce0","date":1526327067000,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2945,"assignment_id":"count_102.py_ca117_count_letters","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1522765366000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":19376,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766668000,"func_code":"def count_letters(word):\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","comments":"# KC# handling base case of recursion","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":9212,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766686000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","comments":"# KC# missing-based recursion case, wrong strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":10188,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766765000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if word == '':\n return 0\n return 1 + count_letters(word[1:])\n","comments":"","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":42374,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767451000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC# wrong strategy - mixing recursion with iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":1737,"assignment_id":"count_102.py_ca117_count_letters","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1523045262000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":7311,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","date":1520511693000,"func_code":"def swap_keys_values(d):\n dictionary = {}\n for key in d:\n dictionary[d[key]] = key\n return dictionary","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","comments":"# KC# wrong-indentation","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":11974,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"75fca52d-a61c-4d91-946c-d376c5569767","date":1519313553000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18678,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1519325068000,"func_code":"def swap_keys_values(d):\n new_d = {}\n for k, v in d:\n d1[v] = k\n return new_d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18855,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","date":1519586112000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":17348,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":1519927563000,"func_code":"def swap_keys_values(x):\n d = {v: k for k, v in list(a.items())}\n return x","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(x):\n d = {v: k for k, v in list(x.items())}\n return d\n","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":28023,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519928506000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(d):\n dic = {}\n for key, value in d.items():\n dic[value] = key\n return dic\n","comments":"","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":10312,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","date":1520511531000,"func_code":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","comments":"# KC# wrong-indentation","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":16548,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039064000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32732,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039133000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19006,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039161000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33533,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364548000,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18046,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767094000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","comments":"# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":19033,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767774000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":21182,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767882000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":16045,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768654000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwown-strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":20475,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768699000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":30363,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768763000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":11706,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768862000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":27032,"assignment_id":"count_102.py_ca117_count_letters","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522926841000,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":39643,"assignment_id":"count_102.py_ca117_count_letters","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1523113224000,"func_code":"def count_letters(s=''):\n return count(s)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy# partial solution","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":39787,"assignment_id":"iterative07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521030404000,"func_code":"def search(string, letter):\n print(letter in string)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":455,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767123000,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","comments":"# KC# mixing iteration and recursion","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":8627,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1519309893000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# complex strategy# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40049,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1519313488000,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print(a)","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3503,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"ebcb6801-87f5-4fa5-b252-f89ccb02603a","date":1519313502000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# typo","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":6626,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1519313519000,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print((a, 'boop'))","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":35363,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1519381421000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":37561,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1519404126000,"func_code":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor:\n new_dictionary[values] = keys","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":29365,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","date":1519586182000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40958,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1519728269000,"func_code":"def swap_keys_values(d):\n for k, v in list(d.items()):\n k, v = v, k\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# wrong strategy: trying to swap dic in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":12754,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519825596000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40179,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519825669000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":19572,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826063000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":19666,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826120000,"func_code":"def swap_keys_values(a):\n for entry in a:\n u = entry[::-1]\n a.append(u)\n return a","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution# wrong strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":14051,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826165000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":36531,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826165000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":9172,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919221000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":20640,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919245000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":32179,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919450000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":34219,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919482000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: swapping in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18058,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919510000,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n return key","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38045,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1519926508000,"func_code":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}\n return new\n","comments":"# KC# missing return","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3826,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":1519927697000,"func_code":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return x","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return d\n","comments":"# KC# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3017,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1519929145000,"func_code":"def swap_keys_values(d):\n d = {}\n for k, v in list(d.items()):\n d[v] = k\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38024,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1519947863000,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d:\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":9242,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1519948427000,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":988,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":1519991886000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38562,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":1519991886000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":34366,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443590000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38765,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443638000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":32144,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443870000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38624,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443870000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":15295,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1520612958000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38875,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1520612958000,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":37103,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1520637811000,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# assignment-misunderstanding","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":35788,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522764849000,"func_code":"def minimum(n):\n print(n)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":15807,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522765532000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19432,"assignment_id":"minimum_102.py_ca117_minimum","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1522765882000,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12511,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522766080000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16483,"assignment_id":"minimum_102.py_ca117_minimum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766542000,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13046,"assignment_id":"minimum_102.py_ca117_minimum","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1522766789000,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n return minimum(l[1:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17597,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767960000,"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[:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":9581,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522769465000,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return minimum(list.pop())","func_name":"minimum","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","module":"ca117","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return list[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2031,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522770054000,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC# partial solution# missing case","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11947,"assignment_id":"minimum_102.py_ca117_minimum","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522772313000,"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:])","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16872,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522773643000,"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)","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n lowest = l[0]\n for line in l:\n if line < lowest:\n lowest = line\n return lowest\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":20481,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522773791000,"func_code":"def minimum(l):\n print(l)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17780,"assignment_id":"minimum_102.py_ca117_minimum","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1522848300000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# typo","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12282,"assignment_id":"minimum_102.py_ca117_minimum","user":"9f673df6-fcfd-4d07-b0dd-1f553c38f25b","date":1522941429000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":34316,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368646000,"func_code":"def minimum(l):\n l = sort(l)\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8341,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368825000,"func_code":"def minimum(l):\n return l","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21875,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368948000,"func_code":"def minimum(l):\n l = l.sort(key=None)\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort(key=None)\n return l[0]\n","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":20650,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368975000,"func_code":"def minimum(l):\n l = l.sort(key=min())\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":37517,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523369137000,"func_code":"def minimum(l):\n return sorted(l)","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n return sorted(l)[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":18495,"assignment_id":"minimum_102.py_ca117_minimum","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1523371009000,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":15677,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523879014000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19534,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523879044000,"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))","func_name":"minimum","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","module":"ca117","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","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":18631,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534203333000,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong function definition","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14069,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522764811000,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong function definition","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24960,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522765900000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":32989,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522765907000,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21725,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522766160000,"func_code":"def minimum(l):\n print('1\\n3\\n6\\n4')","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2494,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522766714000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28358,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767196000,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC# mixing poping and recursive strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22775,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767894000,"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[:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2348,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522768871000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC# missing recursive call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21722,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522774489000,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14211,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936754000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":27727,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936754000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28377,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1523258350000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":9182,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279773000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# Missing variable initialsation","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":25565,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279787000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":39749,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279835000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":4540,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279881000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8157,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279901000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":221,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279919000,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":41708,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279966000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22886,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13264,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28641,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13936,"assignment_id":"minimum_102.py_ca117_minimum","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1523314671000,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC# useless-statement","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":7246,"assignment_id":"minimum_102.py_ca117_minimum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523368601000,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","comments":"# KC# assigning empty return to value","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24555,"assignment_id":"minimum_102.py_ca117_minimum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523368601000,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","comments":"# KC# assigning empty return to value","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":31463,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368734000,"func_code":"def minimum(l):\n l = l.sort()\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22521,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523369119000,"func_code":"def minimum(l):\n sorted(l)\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23105,"assignment_id":"minimum_102.py_ca117_minimum","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1523372723000,"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)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":10456,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534096604000,"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)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13228,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534097092000,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23237,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534097092000,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23959,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534203420000,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# missing recursion base case","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24086,"assignment_id":"maximum_102.py_ca117_maximum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936819,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9619,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766785,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41825,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766818,"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())","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: printing-instead-of-returning, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39634,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766830,"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())","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: printing-instead-of-returning, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25576,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766846,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22381,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510766846,"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)","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration, printing-instead-of-returning","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30666,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510836350,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11676,"assignment_id":"reverse.py_ca277_reverse","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1510836450,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","func_name":"reverse","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']","module":"ca277","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21734,"assignment_id":"reverse.py_ca277_reverse","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1510839123,"func_code":"def reverse(a):\n rev = []\n for i in len(a):\n rev.append(a[len(a) - i - 1])\n return rev","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-range-in-for-in-range-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":947,"assignment_id":"reverse.py_ca277_reverse","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1510839148,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-range-in-for-in-range-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35613,"assignment_id":"reverse.py_ca277_reverse","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1511191465,"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","func_name":"reverse","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']","module":"ca277","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","comments":"# tags: missing-temp-assignment-in-swap","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24622,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789017,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38930,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789398,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31881,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1511789398,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40522,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511871509,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15057,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511871927,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: printing-instead-of-returning, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26332,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511872047,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37211,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872176,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-index-in-negative-lookup, missing-return, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10625,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872197,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-index-in-negative-lookup, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11388,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872218,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20830,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511872238,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35829,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872327,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index, missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27306,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872335,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: off-by-one-in-negative-lookup, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31988,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872339,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32699,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872351,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42328,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872382,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution, missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":518,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872394,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31082,"assignment_id":"func_reverse.py_ca116_reverse","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1511872438,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36140,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872455,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution, missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16672,"assignment_id":"func_reverse.py_ca116_reverse","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1511872599,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39465,"assignment_id":"func_reverse.py_ca116_reverse","user":"bb62ca90-d7ec-42bb-b255-0f55492691ea","date":1511872634,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25940,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511872823,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n a[i] = a[len(a) - 1 - i]\n i += 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: overriding-values, not-using-swap, not-using-a-temporary-list, maybe-assuming-swap-in-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42121,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511872860,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13956,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511872873,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-function-name, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37723,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873085,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16600,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873114,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32086,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873224,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check, iterating-whole-list-while-swapping, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15432,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873226,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26853,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873271,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40900,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873276,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14210,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":1511873334,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21091,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873366,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, iterating-whole-list-while-swapping, missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7167,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873403,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26262,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873496,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34696,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511873512,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: index-overbound-in-iteration, missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4104,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873545,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping, incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34278,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511873558,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6321,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873565,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38521,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873614,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9977,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bc0114-9d34-4210-bb9b-07af403e11ed","date":1511873614,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20857,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511873981,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18861,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511874299,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22250,"assignment_id":"func_reverse.py_ca116_reverse","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1511875047,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-temporary-value-initiation, missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":29294,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875240,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35714,"assignment_id":"func_reverse.py_ca116_reverse","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1511875263,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-function-parameter-in-function-call, flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10271,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875402,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16990,"assignment_id":"func_reverse.py_ca116_reverse","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1511875402,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4273,"assignment_id":"func_reverse.py_ca116_reverse","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1511876042,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":33110,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511876192,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41496,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877077,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, index-overbound-in-iteration","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27843,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877121,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2306,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1511877121,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7077,"assignment_id":"func_reverse.py_ca116_reverse","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1511877624,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1511877669,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5061,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1511877669,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26517,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511877751,"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))","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: printing-instead-of-returning, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30774,"assignment_id":"func_reverse.py_ca116_reverse","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1511877770,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: wrong-loop-variable","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20795,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511877786,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2943,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511877837,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38330,"assignment_id":"func_reverse.py_ca116_reverse","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1511877837,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20419,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878057,"func_code":"def reverse(a):\n j = 0\n i = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25200,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878082,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20414,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878096,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20173,"assignment_id":"func_reverse.py_ca116_reverse","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1511878119,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21707,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878190,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40493,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878207,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index, iterating-whole-list-while-swapping, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19652,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878310,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24060,"assignment_id":"func_reverse.py_ca116_reverse","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1511878310,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22751,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878314,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4012,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878314,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13539,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878328,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-loop-variable-initiation, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35196,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878385,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17586,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878449,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2961,"assignment_id":"func_reverse.py_ca116_reverse","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1511878449,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36169,"assignment_id":"func_reverse.py_ca116_reverse","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1511878474,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32992,"assignment_id":"func_reverse.py_ca116_reverse","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1511878474,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36268,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878500,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17833,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878532,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18393,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878534,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8934,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878583,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping, index-overbound","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15107,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878643,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13145,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878697,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4854,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878712,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31941,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1511878712,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21669,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878735,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24058,"assignment_id":"func_reverse.py_ca116_reverse","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1511878735,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25857,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878752,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20456,"assignment_id":"func_reverse.py_ca116_reverse","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1511878768,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14727,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511878777,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24889,"assignment_id":"func_reverse.py_ca116_reverse","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1511878777,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22145,"assignment_id":"func_reverse.py_ca116_reverse","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1511878787,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13119,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878800,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20782,"assignment_id":"func_reverse.py_ca116_reverse","user":"b67cd859-9a7c-482d-b980-f147ea336355","date":1511878842,"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)","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16720,"assignment_id":"func_reverse.py_ca116_reverse","user":"6fb1b046-1d89-4162-8437-722d44e22f50","date":1511878869,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14993,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","date":1511878930,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30152,"assignment_id":"func_reverse.py_ca116_reverse","user":"7d63d843-7e5d-4c24-a378-1056c311dfd2","date":1511878930,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26323,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1511878946,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":25670,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1511878946,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5036,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511878982,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41303,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879003,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":28597,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879048,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5498,"assignment_id":"func_reverse.py_ca116_reverse","user":"a758f933-ec7a-444d-b3d2-f685ac9d9563","date":1511879066,"func_code":"def reverse(a):\n m = len(a) - i - 1\n return m","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2771,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879104,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31092,"assignment_id":"func_reverse.py_ca116_reverse","user":"09e5a143-ae3a-4611-8cfa-45d52e07b2c6","date":1511879136,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[len(a) - i - 1]\n i = i + 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30427,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879143,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40170,"assignment_id":"func_reverse.py_ca116_reverse","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1511879143,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7298,"assignment_id":"func_reverse.py_ca116_reverse","user":"6fb1b046-1d89-4162-8437-722d44e22f50","date":1511879157,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-temp-assignment-in-swap","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34427,"assignment_id":"func_reverse.py_ca116_reverse","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1511879326,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: typo, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1535,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511879576,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17254,"assignment_id":"func_reverse.py_ca116_reverse","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1511879622,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: typo","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4234,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511879676,"func_code":"def reverse(a):\n t = ''\n while j < len(i):\n t = a[j] + t\n j = j + 1\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11366,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879735,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, wrong-loop-variable","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6750,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511879736,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-swap-index, incorrect-adjustment-of-temporary-value, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36012,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879765,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":553,"assignment_id":"func_reverse.py_ca116_reverse","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1511879765,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9605,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879796,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, iterating-whole-list-while-swapping","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17744,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511879819,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, incorrect-swap-index, incorrect-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31143,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511879878,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30936,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879890,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36342,"assignment_id":"func_reverse.py_ca116_reverse","user":"d0bbdcdf-7e56-44f5-b27d-7b9822c0a1d6","date":1511879890,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13345,"assignment_id":"func_reverse.py_ca116_reverse","user":"e446f262-2121-4c37-a09e-a856c55efaca","date":1511879906,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34947,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511879906,"func_code":"def reverse(a):\n x = len(a) - i - 1\n return x","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12060,"assignment_id":"func_reverse.py_ca116_reverse","user":"e446f262-2121-4c37-a09e-a856c55efaca","date":1511879906,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38358,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511879945,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-loop-variable-initiation, missing-function-parameter-in-function-call, missing-return, incorrect-indentation-in-loop-value, invalid-array-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13371,"assignment_id":"func_reverse.py_ca116_reverse","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1511879950,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36621,"assignment_id":"func_reverse.py_ca116_reverse","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1511879950,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1425,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880104,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index, incorrect-indentation-in-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37351,"assignment_id":"func_reverse.py_ca116_reverse","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1511880106,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5788,"assignment_id":"func_reverse.py_ca116_reverse","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1511880106,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: missing-swap-function","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20140,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880131,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-temp-variable-usage","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17853,"assignment_id":"func_reverse.py_ca116_reverse","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","date":1511880165,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34004,"assignment_id":"func_reverse.py_ca116_reverse","user":"dd2b828e-e813-417d-b910-df48d2f89ccc","date":1511880165,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36122,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880168,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":3797,"assignment_id":"func_reverse.py_ca116_reverse","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1511880168,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12752,"assignment_id":"func_reverse.py_ca116_reverse","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1511880222,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15472,"assignment_id":"func_reverse.py_ca116_reverse","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1511880222,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13484,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880227,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, incorrect-swap-index","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":28691,"assignment_id":"func_reverse.py_ca116_reverse","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1511880233,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41477,"assignment_id":"func_reverse.py_ca116_reverse","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1511880233,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":40898,"assignment_id":"func_reverse.py_ca116_reverse","user":"36685ead-53f8-40af-a908-4c048278dc6b","date":1511880257,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":547,"assignment_id":"func_reverse.py_ca116_reverse","user":"36685ead-53f8-40af-a908-4c048278dc6b","date":1511880257,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39819,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880292,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return, missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9359,"assignment_id":"func_reverse.py_ca116_reverse","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1511880342,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":4453,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bf8435-64be-48cb-be81-139956827989","date":1511880387,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30178,"assignment_id":"func_reverse.py_ca116_reverse","user":"05bf8435-64be-48cb-be81-139956827989","date":1511880387,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8437,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511880406,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":30470,"assignment_id":"func_reverse.py_ca116_reverse","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1511880406,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21856,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880426,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-loop-variable-initiation, missing-return, missing-function-parameter-in-function-call, invalid-array-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17782,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511880479,"func_code":"def reverse(a):\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17728,"assignment_id":"func_reverse.py_ca116_reverse","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1511880507,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":23086,"assignment_id":"func_reverse.py_ca116_reverse","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1511880507,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32960,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880516,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19315,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880544,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13063,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880562,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":16967,"assignment_id":"func_reverse.py_ca116_reverse","user":"e3c31dbf-4c63-4e59-aa78-540cb586910e","date":1511880562,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41902,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880572,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-function-parameter-in-function-call, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6648,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880580,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-loop-variable-initiation, incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":10648,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880590,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":26090,"assignment_id":"func_reverse.py_ca116_reverse","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1511880590,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2388,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880607,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, missing-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12726,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880664,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5424,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880687,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# incorrect-indentation-in-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":34046,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880693,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: iterating-whole-list-while-swapping, missing-return, invalid-loop-variable-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11219,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880702,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-use-of-len","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38068,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880709,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14169,"assignment_id":"func_reverse.py_ca116_reverse","user":"03ce4b42-26f0-456c-9d48-18c0d16bec55","date":1511880709,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":2110,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511880720,"func_code":"def reverse(a):\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":8997,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880726,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":22867,"assignment_id":"func_reverse.py_ca116_reverse","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1511880726,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7607,"assignment_id":"func_reverse.py_ca116_reverse","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","date":1511880818,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":42462,"assignment_id":"func_reverse.py_ca116_reverse","user":"30a4c165-17bc-4bdf-a096-e2a252a403eb","date":1511880818,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32054,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880866,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7666,"assignment_id":"func_reverse.py_ca116_reverse","user":"50aef720-52de-4735-8874-78f5a311b939","date":1511880866,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13597,"assignment_id":"func_reverse.py_ca116_reverse","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","date":1511880971,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":11295,"assignment_id":"func_reverse.py_ca116_reverse","user":"c8ff27a3-b9c4-40dd-95d5-68feefbafff7","date":1511880971,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32551,"assignment_id":"func_reverse.py_ca116_reverse","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1511881208,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19539,"assignment_id":"func_reverse.py_ca116_reverse","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1511881208,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15113,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511881566,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# incorrect-comparison-in-loop","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":12312,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511881807,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39711,"assignment_id":"func_reverse.py_ca116_reverse","user":"536d6075-5a50-4346-89ff-5e21df057756","date":1511882309,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, invalid-temp-variable-usage","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21719,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511882373,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35405,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511882439,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation, invalid-list-concatenation, not-using-a-temporary-list","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":38961,"assignment_id":"func_reverse.py_ca116_reverse","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1511882525,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: invalid-list-concatenation, missing-list-append","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":24993,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511882601,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":41948,"assignment_id":"func_reverse.py_ca116_reverse","user":"f15a871d-61c5-494f-8886-91e213b59201","date":1511882926,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: flawed-iteration-continuation-check","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":13008,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511885700,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return, mismatch-between-parameter-and-variable-names","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1004,"assignment_id":"func_reverse.py_ca116_reverse","user":"825987dd-47a8-4023-b124-16b318935de3","date":1511888496,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"","comments":"# tags: impartial-solution","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":19480,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511888602,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6619,"assignment_id":"func_reverse.py_ca116_reverse","user":"73d23f7d-b20e-4105-a1b6-6760045cdf33","date":1511888602,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":23108,"assignment_id":"func_reverse.py_ca116_reverse","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1511895071,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1195,"assignment_id":"func_reverse.py_ca116_reverse","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1511895071,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39886,"assignment_id":"func_reverse.py_ca116_reverse","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","date":1511899374,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7733,"assignment_id":"func_reverse.py_ca116_reverse","user":"f565987c-8fbf-4b95-b405-cf1a3ccac8f5","date":1511899374,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20634,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511900460,"func_code":"def reverse(a):\n a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20771,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511901482,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":32940,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511901482,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1095,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511902813,"func_code":"def reverse(a):\n a = a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9155,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1511907892,"func_code":"def reverse(a):\n a[::-1]\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":36535,"assignment_id":"func_reverse.py_ca116_reverse","user":"0964a543-93db-460b-a0c5-d0c94fea250f","date":1511910999,"func_code":"def reverse(a):\n a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":5042,"assignment_id":"func_reverse.py_ca116_reverse","user":"0964a543-93db-460b-a0c5-d0c94fea250f","date":1511910999,"func_code":"def reverse(a):\n a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":15424,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511952967,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20546,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511953057,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":942,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1511953057,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-temporary-array-initiation","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":27197,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":37837,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21445,"assignment_id":"func_reverse.py_ca116_reverse","user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":1512000131,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35368,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512004800,"func_code":"def reverse(a):\n print(a[::-1])\n return","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment, missing-return-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39111,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005005,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":20425,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005050,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14360,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005213,"func_code":"def reverse(a):\n print(a[::-1])\n return a","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","comments":"# tags: missing-assignment","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17073,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005243,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":14572,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005281,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9708,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005417,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":1268,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005473,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":39097,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005490,"func_code":"def reverse(a):\n a[::-1]\n return","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17480,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005569,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":7879,"assignment_id":"func_reverse.py_ca116_reverse","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1512005569,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":6774,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512051816,"func_code":"def reverse(a):\n a[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":18550,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512051870,"func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":35191,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512052068,"func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: returning-none-by-accident, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":21992,"assignment_id":"func_reverse.py_ca116_reverse","user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":1512052068,"func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","annotation":"def reverse(a):\n a.reverse()\n return a\n","comments":"# tags: returning-none-by-accident, missing-return","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":9418,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1515779045,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-adjustment-of-loop-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":31940,"assignment_id":"func_reverse.py_ca116_reverse","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1515779157,"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","module":"ca116","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","comments":"# tags: missing-adjustment-of-temporary-value","academic_year":2017.0,"description":"Reverse a list of elements."} {"submission_id":17999,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027408,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4585,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027439,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1771,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027632,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16200,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027661,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31681,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027714,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28960,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027768,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40541,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027888,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31005,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521027933,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36437,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521029822,"func_code":"def search(str, letter):\n for letters in str:\n if letters in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-loop, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33668,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521029855,"func_code":"def search(str, letter):\n for letters in str:\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7308,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030008,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2198,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030090,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16988,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030097,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30911,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030116,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1107,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030135,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30283,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030166,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":28612,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030227,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n return letter in str\n","comments":"# LH # tags: wonky-solution. nonsense-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21413,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030245,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3326,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":25405,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":11650,"assignment_id":"iterative07.py_ca278_index","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":20207,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38859,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38869,"assignment_id":"iterative07.py_ca278_search","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1521030261,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19569,"assignment_id":"iterative07.py_ca278_search","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1521030262,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17377,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030422,"func_code":"def search(letter):\n str = input()\n letter = input()\n if letter in str:\n print(True)\n else:\n print(false)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: asking-user-input, print-instead-of-return, syntax-error, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9908,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030437,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41667,"assignment_id":"iterative07.py_ca278_search","user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":1521030450,"func_code":"def search(str, letter):\n for letter in str:\n return True","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, search_letter):\n for letter in str:\n if letter == search_letter:\n return True\n return False\n","comments":"# LH # tags: wonky-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":961,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030476,"func_code":"def search(letter):\n str = input()\n if letter in str:\n print(True)\n else:\n print(false)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, asking-user-input, syntax-error","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27288,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521030480,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8404,"assignment_id":"iterative07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521030508,"func_code":"def search(letter):\n str = input()\n if letter in str:\n return True\n else:\n return false","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: asking-user-input, syntax-error, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37053,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030513,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9879,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030604,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":32040,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030625,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42412,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030648,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9867,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521030649,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36164,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521030687,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4736,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521030720,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":12698,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030727,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31921,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030785,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":14528,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521030785,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2574,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521030837,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38730,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521030993,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9206,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26977,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20548,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521031100,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20198,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031104,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":3143,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031111,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17711,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031127,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4420,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031169,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6157,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031197,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35991,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031227,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19679,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031234,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":23346,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031245,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31949,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521031271,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35031,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031351,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39255,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031393,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24009,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031407,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41348,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031417,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35200,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031422,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13284,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031465,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13686,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521031509,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4441,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521031903,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2549,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521031981,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30776,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521031985,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38508,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032005,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5286,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032054,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17886,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13900,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40302,"assignment_id":"iterative07.py_ca278_search","user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":1521032068,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2410,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032113,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16152,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032130,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":496,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032162,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8898,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032214,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23423,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26101,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5446,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521032239,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26738,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032336,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16400,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032477,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19028,"assignment_id":"iterative07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521032477,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38773,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032539,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41422,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032555,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36064,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032591,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34734,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032645,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29301,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032717,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35101,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032860,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25419,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":25874,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":19377,"assignment_id":"iterative07.py_ca278_index","user":"9de68f60-663e-4929-b3e2-88948f90a669","date":1521032862,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":21089,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521032874,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16885,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521032903,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10621,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521032904,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31904,"assignment_id":"iterative07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521033118,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1269,"assignment_id":"iterative07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521033140,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1097,"assignment_id":"iterative07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521033140,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30112,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27285,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21361,"assignment_id":"iterative07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521033245,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9229,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18997,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23013,"assignment_id":"recursive07.py_ca278_search","user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":1521033426,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2665,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033466,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25343,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033478,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13253,"assignment_id":"iterative07.py_ca278_search","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1521033538,"func_code":"def search(str, letter):\n for letter in str:\n if letter in str:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: extra-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39946,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033567,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n if letter not in str:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n if letter not in str:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41855,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033584,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35164,"assignment_id":"iterative07.py_ca278_search","user":"5bdd4d7a-504a-4b32-ac06-c9d0e6adb55a","date":1521033587,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14610,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033648,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32609,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033711,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1885,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033711,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":5916,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":27243,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33920,"assignment_id":"iterative07.py_ca278_index","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":4030,"assignment_id":"iterative07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521033734,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23435,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521033742,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7032,"assignment_id":"iterative07.py_ca278_search","user":"e5dedf13-336d-484f-81bc-d7898f0f002e","date":1521033749,"func_code":"def search(str, letter):\n if letter in str:\n return true\n else:\n return false","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: syntax-error","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41456,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521033820,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6023,"assignment_id":"recursive07.py_ca278_search","user":"1952771b-859e-46c9-8146-448dc8ef5870","date":1521034018,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11310,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034076,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41955,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034137,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32350,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32661,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14257,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521034153,"func_code":"def search(string, letter):\n if letter == string:\n return 'True'\n else:\n search(string[1:], letter)\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-recursive-return, wrong-comparison","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26367,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034738,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20591,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26352,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5065,"assignment_id":"recursive07.py_ca278_search","user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":1521034776,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36247,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521034889,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37119,"assignment_id":"iterative07.py_ca278_search","user":"4b4cb32f-e677-40c7-8bdb-79ba1dd2a70b","date":1521034889,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42234,"assignment_id":"recursive07.py_ca278_search","user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":1521035156,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list. wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19928,"assignment_id":"recursive07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521035491,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14053,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521035512,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9716,"assignment_id":"recursive07.py_ca278_search","user":"d31360b5-795b-45df-bd6f-a99df2683eae","date":1521035609,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26883,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036288,"func_code":"def search(str, letter):\n if letter in str:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8532,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036302,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24139,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036350,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2728,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521036653,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":472,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521036961,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16780,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1620,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037300,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1046,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521037841,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21667,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521037926,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29230,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037937,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36476,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037953,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11053,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037954,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31699,"assignment_id":"iterative07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521037954,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14929,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038122,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11733,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521038193,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22281,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23149,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39602,"assignment_id":"iterative07.py_ca278_search","user":"bc728955-e4e8-48d1-9acb-b83b3fd023ba","date":1521038314,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34428,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521039673,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11889,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521040978,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14879,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041017,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37649,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041045,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8200,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32899,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29598,"assignment_id":"recursive07.py_ca278_search","user":"5ba5010e-c0ac-4560-9fa6-aadbc278c3f8","date":1521041053,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40936,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048125,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15004,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048156,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2176,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048172,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24727,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048192,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29293,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36483,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21392,"assignment_id":"iterative07.py_ca278_search","user":"03324848-d1b1-4b00-9ab7-93d76a61a9c0","date":1521048368,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6737,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052181,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30594,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052292,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19927,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052481,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19397,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052550,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15299,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521052577,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18424,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057311,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14736,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057437,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33512,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057541,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37215,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057636,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26840,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057912,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24656,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10663,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15548,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521057957,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30855,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070498,"func_code":"def search(str):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, missing-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4121,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070538,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38591,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070572,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34995,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521070977,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21480,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071001,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21736,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071103,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3976,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071165,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24428,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071183,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17751,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14959,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13214,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521071286,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37824,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141038,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return, asking-user-input","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30850,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141068,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29051,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141128,"func_code":"def search(string, letter):\n if letter not in string:\n print('False')\n else:\n print('True')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21204,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141147,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29490,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141441,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14826,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141496,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23940,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35111,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24469,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521141518,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1544,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521150985,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14648,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151135,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10452,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151135,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13186,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151330,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23719,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37348,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2117,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521151373,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2503,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214110,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7519,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214139,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1692,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214157,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24343,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214363,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40661,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214388,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32569,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214429,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11774,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214451,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18549,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214469,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5883,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214533,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27064,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214596,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8729,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214621,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6209,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521214685,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34481,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215055,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23655,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215135,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6520,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215366,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12975,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521215366,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4986,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1039,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3286,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364586,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32154,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393596,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20835,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393722,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12876,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393835,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23689,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521393873,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6759,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394069,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13136,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394184,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3521,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394201,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17117,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394222,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28745,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394303,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37966,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394383,"func_code":"def search(str, letter):\n i = 0\n if letter == str[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, missing-loop","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15796,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521394686,"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","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution, wonky-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5977,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521395459,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list. wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24930,"assignment_id":"recursive07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521395513,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22668,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521396397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8471,"assignment_id":"iterative07.py_ca278_search","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1521396397,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34658,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521481353,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-base-case","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24483,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521481375,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-base-case","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21440,"assignment_id":"recursive07.py_ca278_search","user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":1521484814,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8976,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488044,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":23509,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488302,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":35274,"assignment_id":"iterative07.py_ca278_index","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1521488302,"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'","func_name":"index","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","module":"ca278","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","comments":"# KC# return string instead of interger value","academic_year":2017.0,"description":"Returns the position of letter in str, -1 if it is not there."} {"submission_id":20620,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521490794,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8994,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521490945,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17797,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491017,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31071,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491043,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25963,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491060,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2688,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521491785,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20083,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492222,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, print-instead-of-return, missing-recursive-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37266,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492361,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-comparison, wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8061,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492402,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35992,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492527,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38708,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492551,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32648,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492560,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27011,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492588,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39633,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492591,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5878,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492817,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":49,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521492852,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20491,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492865,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27930,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492913,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30199,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521492948,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26036,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493087,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7464,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493267,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38412,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493303,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34055,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493363,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42327,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37986,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521493435,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35782,"assignment_id":"recursive07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521493435,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1564,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493462,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31240,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493598,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35898,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493622,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23397,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493814,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32419,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493898,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20123,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521493942,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31486,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494523,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18616,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494596,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30425,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494651,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24760,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521494699,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12078,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495223,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28770,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495276,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37392,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495965,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22043,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521495965,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17295,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498676,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41430,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498703,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20068,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498723,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32307,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498741,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37964,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498769,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16766,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498802,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33102,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498896,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41082,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498919,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15662,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521498971,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14589,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499001,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19235,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499026,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11754,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499060,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35672,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499453,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37589,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499461,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19845,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499473,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15112,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499506,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13671,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499560,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34086,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499597,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24732,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499697,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30920,"assignment_id":"iterative07.py_ca278_search","user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":1521499697,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4766,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499804,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20242,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499829,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33659,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499866,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16561,"assignment_id":"iterative07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521499866,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14926,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19099,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25389,"assignment_id":"iterative07.py_ca278_search","user":"d2330156-60dd-4aca-a925-9aa27e3edb48","date":1521500058,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10293,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38421,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29008,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521500970,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5075,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506878,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13079,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506943,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":213,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11527,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5918,"assignment_id":"iterative07.py_ca278_search","user":"9cf41e84-15c1-4c2d-90e2-497206e45e8b","date":1521506974,"func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n if letter not in string:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter in string:\n return True\n if letter not in string:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26621,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540389,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39760,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540439,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40506,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31945,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27573,"assignment_id":"iterative07.py_ca278_search","user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":1521540463,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19318,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":5215,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2417,"assignment_id":"iterative07.py_ca278_search","user":"424d327d-5f5b-4330-a365-eccda358dbd5","date":1521540614,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42017,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521541259,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8935,"assignment_id":"iterative07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521541259,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17827,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541668,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":17317,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541720,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37027,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521541722,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19079,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521541734,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22359,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521541744,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7960,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542019,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35694,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542159,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7090,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542191,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6198,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542209,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31959,"assignment_id":"iterative07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542218,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6714,"assignment_id":"iterative07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542218,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23497,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542228,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":40575,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542240,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":21545,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542261,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42023,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542287,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25064,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542317,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12604,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542347,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23030,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542392,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37789,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542409,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return-statement","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32266,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542454,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10153,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6837,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36016,"assignment_id":"iterative07.py_ca278_search","user":"ea7c3666-b2a8-45fc-9644-69fa2415de49","date":1521542482,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2280,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542531,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2374,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12441,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":27766,"assignment_id":"recursive07.py_ca278_search","user":"9413c2ae-94cc-4b45-8180-0919de97fe15","date":1521542543,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32965,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542573,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":23027,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542584,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36507,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542601,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37083,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542679,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":34921,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2973,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36862,"assignment_id":"iterative07.py_ca278_search","user":"9c13ddb1-6d39-4008-85d0-50d504649bb6","date":1521542708,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38288,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542710,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30226,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542714,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: print-instead-of-return, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28014,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542739,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-value, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13524,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6608,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":42116,"assignment_id":"recursive07.py_ca278_search","user":"54e3b0c4-223a-427c-9155-d6954330319d","date":1521542752,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, non-recursive-solution, extra-code","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":437,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":29818,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16396,"assignment_id":"recursive07.py_ca278_search","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1521542780,"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')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: missing-base-case, wrong-return-type, extra-print","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24771,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542793,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25365,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26764,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11490,"assignment_id":"iterative07.py_ca278_search","user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":1521542936,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":9097,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542942,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":6923,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521542942,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":20408,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543508,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11480,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543558,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16425,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521543558,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26503,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521562698,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: adding-additional-parameter","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1507,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625698,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution-","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":13361,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625749,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41633,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625773,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35050,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625859,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15233,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625923,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25186,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521625973,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33772,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626177,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":25004,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626208,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":4671,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626241,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39590,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626316,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30478,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626428,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31942,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626465,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":22923,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1521626465,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15891,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28554,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39263,"assignment_id":"recursive07.py_ca278_search","user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":1521628359,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31632,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":8884,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":38471,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1521636921,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10465,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31631,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32704,"assignment_id":"iterative07.py_ca278_search","user":"415d4431-1b98-4241-a978-02dc16bf556e","date":1521638207,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32211,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649060,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10201,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649093,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12134,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649205,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":15269,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649257,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":37175,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649536,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":36042,"assignment_id":"iterative07.py_ca278_search","user":"4205f21d-1c6e-499a-a25c-83a2d9d5ad93","date":1521649536,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":41547,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850630,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":11065,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850698,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18948,"assignment_id":"recursive07.py_ca278_search","user":"169d7a9e-d0dd-4e8b-937d-fcd76c099acc","date":1521850698,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":28494,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521987631,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7359,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521988070,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":3221,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989511,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31234,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989580,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":31278,"assignment_id":"iterative07.py_ca278_search","user":"e44b26cb-9ae2-4852-8e5e-b3d0f2b1ec60","date":1521989580,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12076,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141135,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":1976,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141799,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19834,"assignment_id":"recursive07.py_ca278_search","user":"e380b6f8-84c6-4978-a85b-78c22ace6b9b","date":1522141971,"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'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-return-type, non-recursive-solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":30365,"assignment_id":"iterative07.py_ca278_search","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":1522255177,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16539,"assignment_id":"iterative07.py_ca278_search","user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":1522255177,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10139,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":35022,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":16281,"assignment_id":"iterative07.py_ca278_search","user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":1522256097,"func_code":"def search(string, letter):\n if letter not in string:\n return 'False'\n else:\n return 'True'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(string, letter):\n if letter not in string:\n return False\n else:\n return True\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26462,"assignment_id":"iterative07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258163,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32578,"assignment_id":"iterative07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258163,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":12650,"assignment_id":"recursive07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258225,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":26856,"assignment_id":"recursive07.py_ca278_search","user":"7d0d82bd-2bdb-48da-a37f-ffa6ee59d960","date":1522258225,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":39984,"assignment_id":"sumup_102.py_ca117_sumup","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522763427,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":39391,"assignment_id":"sumup_102.py_ca117_sumup","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522763501,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":37109,"assignment_id":"sumup_102.py_ca117_sumup","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522764208,"func_code":"def sumup(n):\n total = 0\n for i in range(n):\n total + i\n return total + n","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n total = 0\n for i in range(n):\n total = total + i\n return total + n\n","comments":"# tags: missing-value-assignment","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":40556,"assignment_id":"sumup_102.py_ca117_sumup","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1522764302,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":4572,"assignment_id":"sumup_102.py_ca117_sumup","user":"d030c365-0c70-41fc-bf99-b5270c6b8c31","date":1522764798,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":10017,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765093,"func_code":"def maximum(l):\n sorted(l)\n return l(len(l) - 1)\n return maximum(l)","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n l = sorted(l)\n return l[len(l) - 1]\n","comments":"# KC","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":14087,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765149,"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)","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n l = sorted(l)\n return l[-1]\n","comments":"# JL# tags: partial-solution","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":23641,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765171,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: 1-size-list error","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9072,"assignment_id":"maximum_102.py_ca117_maximum","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1522765171,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: 1-size-list error","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":12366,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522765371,"func_code":"def minimum(n):\n print(min(n))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n return min(n)\n","comments":"# KC # printing-instead-of-return","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11625,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0af1b08-7254-49f0-8cc4-d63a85c9199d","date":1522766115,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong variable usage - mixing variables","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24784,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766156,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":736,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766231,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":10082,"assignment_id":"minimum_102.py_ca117_minimum","user":"d0e5b214-932e-4ec6-ae62-66baacab8b6c","date":1522766546,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":944,"assignment_id":"maximum_102.py_ca117_maximum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766662,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":41531,"assignment_id":"maximum_102.py_ca117_maximum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766705,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: typo, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":7722,"assignment_id":"maximum_102.py_ca117_maximum","user":"f4380e0a-3bfd-44c6-b455-fe1018a45321","date":1522766936,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":19956,"assignment_id":"maximum_102.py_ca117_maximum","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1522767034,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34678,"assignment_id":"maximum_102.py_ca117_maximum","user":"7d992268-b79a-4106-8fbb-4f53742d117d","date":1522768001,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":25488,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770451,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":34281,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770467,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30514,"assignment_id":"sumup_102.py_ca117_sumup","user":"7eb02a08-e561-4e33-a415-6df6cc4ff4a9","date":1522770606,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":13319,"assignment_id":"sumup_102.py_ca117_sumup","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522770625,"func_code":"def sumup(x):\n x = x + sumup(x)\n return x","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(x):\n if x == 0:\n return 0\n x = x + sumup(x - 1)\n return x\n","comments":"# tags: infinite-recursion, not-guarding-for-zero, missing-reducing-in-recursion","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":28816,"assignment_id":"maximum_102.py_ca117_maximum","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522772425,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":37410,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775843,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16938,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775874,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":14655,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522775940,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":21903,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776006,"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]))","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16689,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776062,"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]))","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":29175,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776162,"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])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, list error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":39219,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776214,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","comments":"# JL# tags: incorrect initialization","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34381,"assignment_id":"maximum_102.py_ca117_maximum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522776214,"func_code":"def maximum(l):\n m = 0\n for line in l:\n if line > m:\n m = line\n return m","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","comments":"# JL# tags: incorrect initialization","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":5729,"assignment_id":"maximum_102.py_ca117_maximum","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1522860266,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":35526,"assignment_id":"maximum_102.py_ca117_maximum","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1522860266,"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:])","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4514,"assignment_id":"sumup_102.py_ca117_sumup","user":"71d3efb1-0433-44ad-83f0-224949653177","date":1522867725,"func_code":"def sumup(n):\n sum = 0\n for x in range(0, n):\n sum += x\n return sum","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n sum = 0\n for x in range(0, n + 1):\n sum += x\n return sum\n","comments":"# tags: incorrect-upper-bound-use-in-range","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":34387,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30693,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":31181,"assignment_id":"sumup_102.py_ca117_sumup","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1522884022,"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","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: not-guarding-for-zero","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":30002,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938156,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: return type issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":38995,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938296,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: issues with return types","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4000,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1522938296,"func_code":"def maximum(a):\n if len(a) == 1:\n return list(a[0])\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: issues with return types","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":30206,"assignment_id":"maximum_102.py_ca117_maximum","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1523113078,"func_code":"def maximum(n=[]):\n return max(maximum(n))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(n=[]):\n return max(n)\n","comments":"# JL# tags: infinite recursion, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":24348,"assignment_id":"maximum_102.py_ca117_maximum","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1523314419,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: typo, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":15327,"assignment_id":"minimum_102.py_ca117_minimum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523364816,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13662,"assignment_id":"minimum_102.py_ca117_minimum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523364876,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14611,"assignment_id":"maximum_102.py_ca117_maximum","user":"831aaa20-0b62-4198-b323-52fc0aa8363b","date":1523365003,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: conditional error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":22020,"assignment_id":"sumup_102.py_ca117_sumup","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368024,"func_code":"def sumup(N):\n if N != 0:\n N += N - 1\n return N","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(N):\n if N != 0:\n N += sumup(N - 1)\n return N\n","comments":"# tags: missing-recursive-function-call","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":12304,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368728,"func_code":"def minimum(l):\n l = l.sort\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12251,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368758,"func_code":"def minimum(l):\n l = l.sort()\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":41243,"assignment_id":"maximum_102.py_ca117_maximum","user":"1ea53a09-863b-4396-bbe3-e75221238368","date":1523369330,"func_code":"def maximum(l):\n return sorted(l)[len() - 1]","func_name":"maximum","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","module":"ca117","annotation":"def maximum(l):\n return sorted(l)[len(l) - 1]\n","comments":"# JL# tags: typo","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":37461,"assignment_id":"maximum_102.py_ca117_maximum","user":"57b690d2-56f4-4fcf-abf7-8719f8802aae","date":1523372787,"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)","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":5556,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8529,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12579,"assignment_id":"minimum_102.py_ca117_minimum","user":"16011fd4-f5e2-4c2c-b014-86692ff746d5","date":1523375404,"func_code":"def minimum(n):\n m = sorted(n)\n if n[0] == m[0]:\n return n[0]\n return minimum(n)[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(n):\n m = sorted(n)\n return m[0]\n","comments":"# KC # wrong-problem-solving-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11876,"assignment_id":"maximum_102.py_ca117_maximum","user":"54e7d279-e8ef-49c1-8aea-de3ac0b230cf","date":1523537892,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: index error, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":12634,"assignment_id":"maximum_102.py_ca117_maximum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523625102,"func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n return maximum(a.remove(min(a)))","func_name":"maximum","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","module":"ca117","annotation":"def maximum(a):\n if len(a) == 1:\n return a[0]\n a.remove(min(a))\n return maximum(a)\n","comments":"# JL# tags: return type issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":13115,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523630702,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong-operand","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2095,"assignment_id":"maximum_102.py_ca117_maximum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523630921,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16913,"assignment_id":"sumup_102.py_ca117_sumup","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523658105,"func_code":"def sumup(n):\n a = n(n + 1) \/ 2\n return a","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n a = n * (n + 1) \/ 2\n return a\n","comments":"# tags: missing-multiplication-symbol-from-formula","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":10683,"assignment_id":"sumup_102.py_ca117_sumup","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523658204,"func_code":"def sumup(n):\n if int(n) == 0:\n return '0'\n else:\n return int(n(n + 1) \/ 2)","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n if int(n) == 0:\n return 0\n else:\n return int(n * (n + 1) \/ 2)\n","comments":"# tags: invalid-return-type, missing-multiplication-symbol-from-formula","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":40764,"assignment_id":"sumup_102.py_ca117_sumup","user":"d05025fd-0a14-4010-acb6-dea38896a651","date":1523659243,"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_","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","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","comments":"# tags: typo","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":12764,"assignment_id":"minimum_102.py_ca117_minimum","user":"70a531fa-76d5-4949-ae20-9c7e6db61af8","date":1523660092,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC # typo","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":42384,"assignment_id":"maximum_102.py_ca117_maximum","user":"0412928d-97c6-46f2-980b-7d98214b9765","date":1523660680,"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","func_name":"maximum","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","module":"ca117","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","comments":"# JL# tags: naming issue, recursion","academic_year":2017.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":4839,"assignment_id":"sumup_102.py_ca117_sumup","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523878299,"func_code":"def sumup(n):\n total = [int(i) for i in range(0, n)]\n return sum(total)","func_name":"sumup","test":"assert sumup(0)==0 and sumup(1)==1 and sumup(2)==3 and sumup(10)==55 and sumup(27)==378","module":"ca117","annotation":"def sumup(n):\n total = [int(i) for i in range(0, n + 1)]\n return sum(total)\n","comments":"# tags: incorrect-upper-bound-use-in-range","academic_year":2017.0,"description":"Return the sum of all integers up to n."} {"submission_id":28467,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1524762569,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":7638,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1524762590,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, missing-return-value","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":10160,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1525094738,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: wrong-variable-name, compare-string-to-empty-list","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":14875,"assignment_id":"recursive07.py_ca278_search","user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":1525095139,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# LH # tags: compare-string-to-empty-list, wrong-variable-name","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":24719,"assignment_id":"iterative07.py_ca278_search","user":"3bb099c4-4248-4efd-bfe2-3c423b916ce0","date":1526327067,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":2945,"assignment_id":"count_102.py_ca117_count_letters","user":"3e6d9cdf-3f65-4f24-a2da-9a7ea1150f01","date":1522765366,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":19376,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766668,"func_code":"def count_letters(word):\n try:\n i = i + 1\n return count_letters(word[1:])\n except:\n return i","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","comments":"# KC# handling base case of recursion","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":9212,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766686,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if len(word) == 0:\n return 0\n return 1 + count_letters(word[1:])\n","comments":"# KC# missing-based recursion case, wrong strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":10188,"assignment_id":"count_102.py_ca117_count_letters","user":"3386630d-db39-4134-a4bb-b4908e2b7522","date":1522766765,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(word):\n if word == '':\n return 0\n return 1 + count_letters(word[1:])\n","comments":"","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":42374,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767451,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC# wrong strategy - mixing recursion with iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":1737,"assignment_id":"count_102.py_ca117_count_letters","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1523045262,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":7311,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","date":1520511693,"func_code":"def swap_keys_values(d):\n dictionary = {}\n for key in d:\n dictionary[d[key]] = key\n return dictionary","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","comments":"# KC# wrong-indentation","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":11974,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"75fca52d-a61c-4d91-946c-d376c5569767","date":1519313553,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18678,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1519325068,"func_code":"def swap_keys_values(d):\n new_d = {}\n for k, v in d:\n d1[v] = k\n return new_d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18855,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","date":1519586112,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":17348,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":1519927563,"func_code":"def swap_keys_values(x):\n d = {v: k for k, v in list(a.items())}\n return x","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(x):\n d = {v: k for k, v in list(x.items())}\n return d\n","comments":"# KC# wrong-variable-usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":28023,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519928506,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(d):\n dic = {}\n for key, value in d.items():\n dic[value] = key\n return dic\n","comments":"","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":10312,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"07a2a74b-d2da-4f91-ba7e-5881b51fd5e4","date":1520511531,"func_code":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(s):\n dictionary = {}\n for i in s:\n dictionary[s[i]] = i\n return dictionary\n","comments":"# KC# wrong-indentation","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":16548,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039064,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":32732,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039133,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":19006,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521039161,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":33533,"assignment_id":"recursive07.py_ca278_search","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1521364548,"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","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","comments":"# KC","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":18046,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767094,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","comments":"# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":19033,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767774,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"# KC# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":21182,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767882,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","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","comments":"","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":16045,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768654,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwown-strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":20475,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768699,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# mixing recursion and iteration","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":30363,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768763,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":11706,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522768862,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":27032,"assignment_id":"count_102.py_ca117_count_letters","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522926841,"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)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":39643,"assignment_id":"count_102.py_ca117_count_letters","user":"82c933c3-be69-41b5-9530-1fe384a7f993","date":1523113224,"func_code":"def count_letters(s=''):\n return count(s)","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"","comments":"# KC# unkwon strategy# partial solution","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":39787,"assignment_id":"iterative07.py_ca278_search","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1521030404,"func_code":"def search(string, letter):\n print(letter in string)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return whether a letter is part of a string"} {"submission_id":455,"assignment_id":"count_102.py_ca117_count_letters","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522767123,"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","func_name":"count_letters","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","module":"ca117","annotation":"def count_letters(s):\n total = 0\n for c in s:\n total += 1\n return total\n","comments":"# KC# mixing iteration and recursion","academic_year":2017.0,"description":"Return the number of lettres in a string."} {"submission_id":8627,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1519309893,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# complex strategy# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40049,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1519313488,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print(a)","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3503,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"ebcb6801-87f5-4fa5-b252-f89ccb02603a","date":1519313502,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# typo","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":6626,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"e65c3029-39bf-4873-8e7a-599cb24be899","date":1519313519,"func_code":"def swap_keys_values(d):\n dic = {}\n a = list(d.values())\n b = list(d.keys())\n print((a, 'boop'))","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":35363,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"198db91d-9bcb-463c-838e-d8957f078a4a","date":1519381421,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":37561,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1519404126,"func_code":"def swap_keys_values(dictionary_descriptor):\n new_dictionary = {}\n for keys, values in dictionary_descriptor:\n new_dictionary[values] = keys","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":29365,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"70e78257-bdc0-4e89-b7cb-a49beaca5b77","date":1519586182,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40958,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":1519728269,"func_code":"def swap_keys_values(d):\n for k, v in list(d.items()):\n k, v = v, k\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# wrong strategy: trying to swap dic in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":12754,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519825596,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":40179,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519825669,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":19572,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826063,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":19666,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826120,"func_code":"def swap_keys_values(a):\n for entry in a:\n u = entry[::-1]\n a.append(u)\n return a","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution# wrong strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":14051,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826165,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":36531,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"213d8254-d887-4b88-8234-2f2edbe536aa","date":1519826165,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":9172,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919221,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":20640,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919245,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":32179,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919450,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: trying to swap in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":34219,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919482,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# wrong-strategy: swapping in place","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":18058,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"9d69cd84-adaa-42a8-9530-416762b34c13","date":1519919510,"func_code":"def swap_keys_values(d):\n for key in d:\n key = key.split()\n return key","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38045,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":1519926508,"func_code":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(d):\n new = {v: k for k, v in list(d.items())}\n return new\n","comments":"# KC# missing return","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3826,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":1519927697,"func_code":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return x","func_name":"swap_keys_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'}","module":"ca117","annotation":"def swap_keys_values(x):\n d = dict((k, v) for v, k in list(x.items()))\n return d\n","comments":"# KC# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":3017,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":1519929145,"func_code":"def swap_keys_values(d):\n d = {}\n for k, v in list(d.items()):\n d[v] = k\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# wrong variable usage","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38024,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1519947863,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in d:\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# partial solution","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":9242,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"c007cbe7-350c-4111-aa1b-fca93c97d7f3","date":1519948427,"func_code":"def swap_keys_values(d):\n new_dict = {}\n for key, value in list(d.items()):\n return d","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":988,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":1519991886,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38562,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":1519991886,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":34366,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443590,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38765,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443638,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":32144,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443870,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38624,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"61106f0d-7c7b-4b7a-a3d3-5ba1af9aacf4","date":1520443870,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":15295,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1520612958,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":38875,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"60b76a41-ddf8-4d27-a286-8da8c4e298cd","date":1520612958,"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","func_name":"swap_keys_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'}","module":"ca117","annotation":"","comments":"# KC# unkwown strategy# complex strategy","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":37103,"assignment_id":"swap_v1_042.py_ca117_swap_keys_values","user":"f734d662-6b82-46af-93a9-92b490e12476","date":1520637811,"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","func_name":"swap_keys_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'}","module":"ca117","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","comments":"# KC# assignment-misunderstanding","academic_year":2017.0,"description":"Swap keys with values."} {"submission_id":35788,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522764849,"func_code":"def minimum(n):\n print(n)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":15807,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522765532,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19432,"assignment_id":"minimum_102.py_ca117_minimum","user":"c2ac2f07-625e-4a88-84b0-2a916b646959","date":1522765882,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12511,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522766080,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16483,"assignment_id":"minimum_102.py_ca117_minimum","user":"b799d072-e18e-40e6-96cb-77c78c9e2a0f","date":1522766542,"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:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong binary operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13046,"assignment_id":"minimum_102.py_ca117_minimum","user":"dcc424e7-96ab-4451-ad16-597d84c13c2e","date":1522766789,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n return minimum(l[1:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17597,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767960,"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[:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":9581,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522769465,"func_code":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return minimum(list.pop())","func_name":"minimum","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","module":"ca117","annotation":"def minimum(list):\n if len(list) == 1:\n return list[0]\n list = sorted(list)\n return list[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2031,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522770054,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC# partial solution# missing case","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11947,"assignment_id":"minimum_102.py_ca117_minimum","user":"a998fa29-b3b1-437f-9555-da670b1ae43b","date":1522772313,"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:])","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16872,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522773643,"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)","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n lowest = l[0]\n for line in l:\n if line < lowest:\n lowest = line\n return lowest\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":20481,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522773791,"func_code":"def minimum(l):\n print(l)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17780,"assignment_id":"minimum_102.py_ca117_minimum","user":"bda058db-eb82-407a-b3b2-8f24355f1fa5","date":1522848300,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# typo","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12282,"assignment_id":"minimum_102.py_ca117_minimum","user":"9f673df6-fcfd-4d07-b0dd-1f553c38f25b","date":1522941429,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":34316,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368646,"func_code":"def minimum(l):\n l = sort(l)\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8341,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368825,"func_code":"def minimum(l):\n return l","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21875,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368948,"func_code":"def minimum(l):\n l = l.sort(key=None)\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort(key=None)\n return l[0]\n","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":20650,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368975,"func_code":"def minimum(l):\n l = l.sort(key=min())\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":37517,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523369137,"func_code":"def minimum(l):\n return sorted(l)","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n return sorted(l)[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":18495,"assignment_id":"minimum_102.py_ca117_minimum","user":"9ae0539b-3842-4209-9c3e-252c74db087e","date":1523371009,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], findMinimum(l[1:]))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n return min(l[0], minimum(l[1:]))\n","comments":"# KC# wrong function call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":15677,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523879014,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19534,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1523879044,"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))","func_name":"minimum","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","module":"ca117","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","comments":"# KC# assignment of in place function","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":18631,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534203333,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong function definition","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14069,"assignment_id":"minimum_102.py_ca117_minimum","user":"c3a18502-e93d-4fc5-ab00-d42531abe362","date":1522764811,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong function definition","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24960,"assignment_id":"minimum_102.py_ca117_minimum","user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":1522765900,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":32989,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522765907,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21725,"assignment_id":"minimum_102.py_ca117_minimum","user":"d86203fa-9e1b-4fc0-a3a6-b40a78065d80","date":1522766160,"func_code":"def minimum(l):\n print('1\\n3\\n6\\n4')","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# partial solution","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2494,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522766714,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28358,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767196,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC# mixing poping and recursive strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22775,"assignment_id":"minimum_102.py_ca117_minimum","user":"7c3b55b1-74b7-4570-8484-5a4354d497aa","date":1522767894,"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[:])","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2348,"assignment_id":"minimum_102.py_ca117_minimum","user":"27057d38-c1f9-4b8d-a26e-f287a0546d33","date":1522768871,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC# missing recursive call","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21722,"assignment_id":"minimum_102.py_ca117_minimum","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1522774489,"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","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14211,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936754,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":27727,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1522936754,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28377,"assignment_id":"minimum_102.py_ca117_minimum","user":"c4832969-41c4-4f49-a5b9-3475e4308c10","date":1523258350,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# wrong operator","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":9182,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279773,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# Missing variable initialsation","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":25565,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279787,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":39749,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279835,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":4540,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279881,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8157,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279901,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":221,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279919,"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]","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":41708,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523279966,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22886,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13264,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28641,"assignment_id":"minimum_102.py_ca117_minimum","user":"9dea5530-0f82-4127-b25f-20c784224a03","date":1523280005,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13936,"assignment_id":"minimum_102.py_ca117_minimum","user":"0d8d49aa-e213-4ab4-bcc1-440a0397585c","date":1523314671,"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)","func_name":"minimum","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","module":"ca117","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","comments":"# KC# useless-statement","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":7246,"assignment_id":"minimum_102.py_ca117_minimum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523368601,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","comments":"# KC# assigning empty return to value","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24555,"assignment_id":"minimum_102.py_ca117_minimum","user":"e425d75d-4acb-48c4-b113-9d72b4603c15","date":1523368601,"func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n return minimum(a.remove(max(a)))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n a.remove(max(a))\n return minimum(a)\n","comments":"# KC# assigning empty return to value","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":31463,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523368734,"func_code":"def minimum(l):\n l = l.sort()\n return l[0]","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22521,"assignment_id":"minimum_102.py_ca117_minimum","user":"3f0a2ff2-f068-43e9-9a21-42850d31b8d3","date":1523369119,"func_code":"def minimum(l):\n sorted(l)\n return l","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23105,"assignment_id":"minimum_102.py_ca117_minimum","user":"50d273d2-c9d2-425d-a22d-cc7338b6bc3e","date":1523372723,"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)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# unkwown strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":10456,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534096604,"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)","func_name":"minimum","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","module":"ca117","annotation":"","comments":"# KC# wrong-strategy","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":13228,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534097092,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23237,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534097092,"func_code":"def minimum(l):\n if not l:\n return []\n return minimum(min(l))","func_name":"minimum","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","module":"ca117","annotation":"def minimum(l):\n if not l:\n return []\n return min(l)\n","comments":"# KC","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23959,"assignment_id":"minimum_102.py_ca117_minimum","user":"5aa80855-56ed-43aa-9b33-19faef108ec0","date":1534203420,"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","func_name":"minimum","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","module":"ca117","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","comments":"# KC# missing recursion base case","academic_year":2017.0,"description":"Return the minimum element in a list of numbers."}