{"submission_id":28315,"assignment_id":"reverse.py_ca277_reverse","user":"72504244-3803-4754-91e3-5c7732106556","date":1478691849,"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":2015.0,"description":"Reverse a list of elements."} {"submission_id":36245,"assignment_id":"reverse.py_ca277_reverse","user":"72504244-3803-4754-91e3-5c7732106556","date":1478691849,"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":2015.0,"description":"Reverse a list of elements."} {"submission_id":30688,"assignment_id":"func_reverse.py_ca116_reverse","user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":1480601295,"func_code":"def reverse(a):\n i = 0\n tmp = ''\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 += 1","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] 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 tmp = ''\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 += 1\n return a\n","comments":"# tags: missing-return","academic_year":2015.0,"description":"Reverse a list of elements."} {"submission_id":40460,"assignment_id":"func_reverse.py_ca116_reverse","user":"2157ade0-6890-435b-8669-a884e3233bc7","date":1480844661,"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":2015.0,"description":"Reverse a list of elements."} {"submission_id":30828,"assignment_id":"reverse.py_ca277_reverse","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1481042550,"func_code":"def reverse(a):\n import sys\n a = sys.stdin.readlines()\n i = 0\n b = []\n while i < len(a):\n f = a[len(a) - i - 1]\n i = i + 1\n b.append(f.rstrip())\n print(b)\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":"","comments":"# tags: impartial-solution","academic_year":2015.0,"description":"Reverse a list of elements."} {"submission_id":26006,"assignment_id":"func_reverse.py_ca116_reverse","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":1480424362,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n t = a[i]\n a[i] = a[j]\n a[j] = t\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 j = len(a) - 1 - i\n t = a[i]\n a[i] = a[j]\n a[j] = t\n i = i + 1\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":24752,"assignment_id":"func_reverse.py_ca116_reverse","user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":1480430332,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":27057,"assignment_id":"func_reverse.py_ca116_reverse","user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":1480430399,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":24099,"assignment_id":"func_reverse.py_ca116_reverse","user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":1480430554,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":16134,"assignment_id":"func_reverse.py_ca116_reverse","user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":1480430640,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":7085,"assignment_id":"func_reverse.py_ca116_reverse","user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":1480430717,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":23953,"assignment_id":"func_reverse.py_ca116_reverse","user":"05f63619-1095-4d15-8436-1f0832a593bc","date":1480430738,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":38244,"assignment_id":"func_reverse.py_ca116_reverse","user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":1480430778,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":15574,"assignment_id":"func_reverse.py_ca116_reverse","user":"93426de2-87e4-4c00-9910-de51627bd576","date":1480430836,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":42010,"assignment_id":"func_reverse.py_ca116_reverse","user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":1480430842,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":23084,"assignment_id":"func_reverse.py_ca116_reverse","user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":1480430871,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":20268,"assignment_id":"func_reverse.py_ca116_reverse","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1480430950,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":14859,"assignment_id":"func_reverse.py_ca116_reverse","user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":1480431063,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":8246,"assignment_id":"func_reverse.py_ca116_reverse","user":"41c113b8-6f57-4003-bed3-3587b2376170","date":1480431187,"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 while i < len(a) \/ 2:\n j = len(a) - i - 1\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 temp = a[i]\n a[i] = a[j]\n a[j] = temp\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: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":1101,"assignment_id":"func_reverse.py_ca116_reverse","user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":1480431196,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":26476,"assignment_id":"func_reverse.py_ca116_reverse","user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":1480431999,"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 <= 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[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 <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":11958,"assignment_id":"func_reverse.py_ca116_reverse","user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":1480434709,"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 <= j:\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 <= j:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":11945,"assignment_id":"func_reverse.py_ca116_reverse","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":1483449626,"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 += 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 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 += 1\n j -= 1\n return a\n","comments":"# tags: flawed-iteration-continuation-check, missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":31694,"assignment_id":"func_reverse.py_ca116_reverse","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":1483449708,"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 < len(a) \/ 2 - 1:\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 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 < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","comments":"# tags: flawed-iteration-continuation-check, missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":28558,"assignment_id":"func_reverse.py_ca116_reverse","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":1483449764,"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 < 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 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 < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":40445,"assignment_id":"func_reverse.py_ca116_reverse","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":1483449764,"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 < 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 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 < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":38802,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490187744,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":16664,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490187987,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return str, 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 letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":31036,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490188037,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","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-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":15943,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490188080,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":20818,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490188196,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39141,"assignment_id":"iterative08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490188239,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39083,"assignment_id":"iterative08.py_ca278_search","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":1490188402,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\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(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation, logic-error","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":6387,"assignment_id":"iterative08.py_ca278_search","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":1490188454,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return False\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, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39335,"assignment_id":"iterative08.py_ca278_search","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":1490188477,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":41618,"assignment_id":"iterative08.py_ca278_search","user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":1490188579,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":5685,"assignment_id":"iterative08.py_ca278_search","user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":1490188649,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":27712,"assignment_id":"iterative08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490188650,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return 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":"def search(string, letter):\n if letter in string:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39976,"assignment_id":"iterative08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490188767,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\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(string, letter):\n if letter in string:\n return True\n else:\n return False\n","comments":"# LH # tags: print-instead-of-return, extra-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":12090,"assignment_id":"iterative08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490188909,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return 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 letter in string:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-indentation, print-instead-of-return, extra-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":11572,"assignment_id":"iterative08.py_ca278_search","user":"9b929794-1500-4125-bf6c-79d74c111918","date":1490189255,"func_code":"def search(str, letter):\n list(map(split, 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-code","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":41424,"assignment_id":"iterative08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490190004,"func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n elif letter != string[-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(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i += 1\n return False\n","comments":"# LH # tags: missing-iterator, wrong-return-type, wrong-indentation, wonky-solution","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":34419,"assignment_id":"recursive08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490190166,"func_code":"def search(str, letter, pos):\n if letter in str:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wnon-recursive-solution, adding-additional-parameter","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":24121,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490190598,"func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 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 if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","comments":"# LH # tags: missing-recursive-return, missing-base-case","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":23471,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490190773,"func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n i = i + 1\n search(string[i], 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-recursive-return, missing-base-case","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":19179,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191102,"func_code":"def search(string, letter, count):\n i = 0\n if string[i] == letter:\n return True\n else:\n count = i + 1\n search(string[count], letter, count)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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, missing-recursive-return, wonky-solution, adding-additional-parameter","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":22122,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191170,"func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n count = i + 1\n search(string[count], letter, count)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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, missing-recursive-return, adding-additional-parameter","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":42174,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191333,"func_code":"def search(string, *letter):\n i = 0\n if string[i] == letter[0]:\n return True\n else:\n count = i + 1\n search(string[count], letter[0])","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: adding-variadic-argument, missing-base-case, missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":17180,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191555,"func_code":"def search(string, letter):\n if not i:\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 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, missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":23077,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191661,"func_code":"def search(string, letter):\n if i not in search():\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 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 if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","comments":"# LH # tags: wonky-solution, missing-base-case, missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":34560,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191775,"func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 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, missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":23520,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191823,"func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n elif i < len(string):\n search(string[i + 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-recursive-return, missing-base-case","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":24062,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490191917,"func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n elif i < len(string):\n search(string[i + 1], letter)\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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-recursive-return, missing-base-case","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":12275,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490193527,"func_code":"def search(string, letter):\n test = 0\n if string[0] == letter:\n test = 1\n else:\n search(string[1:], letter)\n if test == 0:\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 string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","comments":"# LH # tags: non-recursive-solution, nonsense-solution","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":1726,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490193763,"func_code":"def search(string, letter):\n if string == []:\n return False\n elif string[0] == letter:\n return 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 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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":3698,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490193824,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":33617,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194036,"func_code":"def search(string, letter, pos):\n if pos == len(string):\n return False\n elif string[pos] == letter:\n return True\n else:\n search(string, letter, 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(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: missing-recursive-return, adding-additional-parameter","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":25896,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194162,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":3214,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194687,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":42094,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194719,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":31929,"assignment_id":"iterative08.py_ca278_search","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":1490194725,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":37546,"assignment_id":"iterative08.py_ca278_search","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":1490194768,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":13997,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194898,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":25341,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490194967,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":8808,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195012,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":26679,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195267,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":13725,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195416,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30716,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195502,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":33875,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195536,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":10739,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195549,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":6539,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195645,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":38764,"assignment_id":"recursive08.py_ca278_search","user":"e787ded7-43af-4b69-82c1-c646ab388711","date":1490195658,"func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return 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: missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":15723,"assignment_id":"iterative08.py_ca278_search","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":1490197032,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":11269,"assignment_id":"recursive08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490197445,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":18880,"assignment_id":"recursive08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490198265,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30639,"assignment_id":"iterative08.py_ca278_search","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":1490198443,"func_code":"def search(str, letter):\n for c in str:\n if letter == c:\n return True\n else:\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for c in str:\n if letter == c:\n return True\n return False\n","comments":"# LH # tags: wrong-indentation","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":37190,"assignment_id":"recursive08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490199196,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":13090,"assignment_id":"recursive08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490199196,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":11156,"assignment_id":"recursive08.py_ca278_search","user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":1490199196,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":26276,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490295619,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":19306,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490295715,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n elif 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 elif letter not in str:\n return False\n","comments":"# LH # tags: print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":8133,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296054,"func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n break\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 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: print-instead-of-return, missing-iterator, extra-code","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":15930,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296084,"func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\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 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-iterator, wrong-indentation, print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":41624,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296230,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":34002,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296264,"func_code":"def search(str, letter):\n if letter in str:\n print('True'.rstrip())\n else:\n print('False'.rstrip())","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type, print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":22433,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296340,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":38168,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296528,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":978,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296696,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":31447,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490296987,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":14096,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490297049,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":26995,"assignment_id":"iterative08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490297049,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":38548,"assignment_id":"recursive08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490297136,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":23614,"assignment_id":"recursive08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490297172,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":36124,"assignment_id":"recursive08.py_ca278_search","user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":1490297172,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: non-recursive-solution, wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":16643,"assignment_id":"iterative08.py_ca278_search","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":1490619379,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30752,"assignment_id":"iterative08.py_ca278_search","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":1490619407,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":23223,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490638408,"func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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 i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i += 1\n return False\n","comments":"# LH # tags: wrong-return-type, missing-iterator","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":28666,"assignment_id":"recursive08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490651297,"func_code":"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(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(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: wrong-return-type, wrong-variable-name","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":26638,"assignment_id":"recursive08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490651318,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":2583,"assignment_id":"recursive08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490651318,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":3244,"assignment_id":"recursive08.py_ca278_search","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":1490651318,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30851,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490655776,"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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":12299,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490655804,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":22277,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490656717,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":5277,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490657920,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":8106,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658172,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":15884,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658322,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":4330,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658345,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":22793,"assignment_id":"iterative08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658345,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":27063,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658696,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39036,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658696,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":20235,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490658696,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":16836,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490659503,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# LH # tags: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":19196,"assignment_id":"recursive08.py_ca278_search","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":1490665507,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":36099,"assignment_id":"recursive08.py_ca278_search","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":1490665507,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":16352,"assignment_id":"recursive08.py_ca278_search","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":1490665507,"func_code":"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)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and 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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":40004,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693062,"func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('False')\n elif s[pos] == letter:\n print('True')\n else:\n return search(s, letter, 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(s, letter):\n if len(s) == 0:\n return False\n elif s[0] == letter:\n return True\n else:\n return search(s[1:], letter)\n","comments":"# LH # tags: adding-additional-parameter, print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":35774,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693371,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":34000,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693681,"func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('-1')\n elif s[pos] == letter:\n print(pos)\n else:\n return search(s, letter, 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(s, letter):\n if len(s) == 0:\n return False\n elif s[0] == letter:\n return True\n else:\n return search(s[1:], letter)\n","comments":"# LH # tags: adding-additional-parameter, print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":6569,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693720,"func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('-1')\n elif s[pos] == letter:\n return pos\n else:\n return search(s, letter, 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(s, letter):\n if len(s) == 0:\n return False\n elif s[0] == letter:\n return True\n else:\n return search(s[1:], letter)\n","comments":"# LH # tags: adding-additional-parameter, wrong-return-value, print-instead-of-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":8338,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693799,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":918,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490693841,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":39092,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490694144,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":8569,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490694494,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":41888,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490694903,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":6667,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490694903,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":38594,"assignment_id":"recursive08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490694903,"func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[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: wrong-return-type","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":21446,"assignment_id":"maximum_102.py_ca117_maximum","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":1492773924,"func_code":"def maximum(l):\n return l.sort()\n l[-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 l.sort()\n return l[-1]\n","comments":"# JL# tags: return error, return on wrong line","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":15763,"assignment_id":"maximum_102.py_ca117_maximum","user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":1492773953,"func_code":"def maximum(l):\n A = 'null'\n highest = A\n for c in l:\n if maximum == A:\n maximum = c\n elif c > maximum:\n maximum = c\n return maximum","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 A = 'null'\n highest = A\n for c in l:\n if highest == A:\n highest = c\n elif c > highest:\n highest = c\n return highest\n","comments":"# JL# tags: naming issue","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":30697,"assignment_id":"maximum_102.py_ca117_maximum","user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":1492776093,"func_code":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e < biggest:\n biggest = e\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(l):\n biggest = l[0]\n for e in l:\n if e > biggest:\n biggest = e\n return biggest\n","comments":"# JL# tags: conditional error","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":10884,"assignment_id":"maximum_102.py_ca117_maximum","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":1492779883,"func_code":"def maximum(l):\n max = -1 * sum(l)\n for i in l:\n if i > max:\n max = i\n return max","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 = l[0]\n for i in l:\n if i > max:\n max = i\n return max\n","comments":"# JL# tags: incorrect initialization","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":15440,"assignment_id":"maximum_102.py_ca117_maximum","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":1492779883,"func_code":"def maximum(l):\n max = -1 * sum(l)\n for i in l:\n if i > max:\n max = i\n return max","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 = l[0]\n for i in l:\n if i > max:\n max = i\n return max\n","comments":"# JL# tags: incorrect initialization","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34333,"assignment_id":"maximum_102.py_ca117_maximum","user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":1492791494,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n else:\n l.remove(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 if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n else:\n l.remove(l[0])\n return maximum(l)\n","comments":"# JL# tags: index error, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":30050,"assignment_id":"maximum_102.py_ca117_maximum","user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":1493037009,"func_code":"def maximum(collection, itera=0, mini=None):\n if itera == 0:\n mini = collection[0]\n if len(collection) == itera:\n return mini\n if mini < collection[itera]:\n mini = collection[itera]\n return minimum(collection, itera + 1, mini)\n else:\n return minimum(collection, itera + 1, mini)","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(collection, itera=0, mini=None):\n if itera == 0:\n mini = collection[0]\n if len(collection) == itera:\n return mini\n if mini < collection[itera]:\n mini = collection[itera]\n return maximum(collection, itera + 1, mini)\n else:\n return maximum(collection, itera + 1, mini)\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":34661,"assignment_id":"maximum_102.py_ca117_maximum","user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":1493037036,"func_code":"def maximum(collection, itera=0, mini=None):\n if itera == 0:\n mini = collection[0]\n if len(collection) == itera:\n return mini\n if mini < collection[itera]:\n mini = collection[itera]\n return minimum(collection, itera + 1, mini)\n else:\n return minimum(collection, itera + 1, mini)","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(collection, itera=0, mini=None):\n if itera == 0:\n mini = collection[0]\n if len(collection) == itera:\n return mini\n if mini < collection[itera]:\n mini = collection[itera]\n return maximum(collection, itera + 1, mini)\n else:\n return maximum(collection, itera + 1, mini)\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":11515,"assignment_id":"minimum_102.py_ca117_minimum","user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":1493044932,"func_code":"def minimum(s):\n if s == 1:\n return s[0]\n else:\n min = minimum(s[1:], s - 1)\n if s[0] < min:\n return s[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(s):\n if len(s) == 1:\n return s[0]\n else:\n min = minimum(s[1:])\n if s[0] < min:\n return s[0]\n else:\n return min\n","comments":"# KC","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11894,"assignment_id":"minimum_102.py_ca117_minimum","user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":1493045355,"func_code":"def minimum(s):\n if len(s) == 0:\n return 0\n else:\n min_ret = minimum(s[1:])\n return s[0] if s[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(s):\n if len(s) == 1:\n return s[0]\n else:\n min_ret = minimum(s[1:])\n return s[0] if s[0] < min_ret else min_ret\n","comments":"# KC# wrong-base-case","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":8130,"assignment_id":"maximum_102.py_ca117_maximum","user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":1493047158,"func_code":"def maximum(s):\n if len(s) == 1:\n return s[0]\n else:\n maxi = maximum(s[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(s):\n if len(s) == 1:\n return s[0]\n else:\n maxi = maximum(s[1:])\n return s[0] if s[0] > maxi else maxi\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":33238,"assignment_id":"maximum_102.py_ca117_maximum","user":"262b3841-5158-4b0c-be99-57281e73f267","date":1493054749,"func_code":"def maximum(l, c=None):\n if c == None:\n return minimum(l[1:], l[0])\n if l == []:\n return c\n if l[0] > c:\n return minimum(l[1:], l[0])\n else:\n return minimum(l[1:], c)","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, c=None):\n if c == None:\n return maximum(l[1:], l[0])\n if l == []:\n return c\n if l[0] > c:\n return maximum(l[1:], l[0])\n else:\n return maximum(l[1:], c)\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":1533,"assignment_id":"minimum_102.py_ca117_minimum","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":1493056709,"func_code":"def minimum(l):\n a = l[0]\n if len(l) == 1:\n return l[0]\n elif a >= minimum(l):\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 a = l[0]\n if len(l) == 1:\n return l[0]\n elif a >= minimum(l[1:]):\n return minimum(l[1:])\n else:\n return a\n","comments":"# KC# complex-problem-solving-strategy","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17233,"assignment_id":"maximum_102.py_ca117_maximum","user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":1493067091,"func_code":"def maximum(list_1):\n i = 0\n total = 0\n while i < len(list_1):\n if int(list_1[i]) >= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total","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(list_1):\n i = 0\n total = list_1[0]\n while i < len(list_1):\n if int(list_1[i]) >= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total\n","comments":"# JL# tags: incorrect initialization","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":8798,"assignment_id":"maximum_102.py_ca117_maximum","user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":1493067091,"func_code":"def maximum(list_1):\n i = 0\n total = 0\n while i < len(list_1):\n if int(list_1[i]) >= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total","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(list_1):\n i = 0\n total = list_1[0]\n while i < len(list_1):\n if int(list_1[i]) >= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total\n","comments":"# JL# tags: incorrect initialization","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":28783,"assignment_id":"maximum_102.py_ca117_maximum","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":1493123597,"func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maxi(n[1:])\n return n[0] if n[0] > maxr else minr","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 if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else maxr\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":27080,"assignment_id":"maximum_102.py_ca117_maximum","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":1493123633,"func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else minr","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 if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else maxr\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":33418,"assignment_id":"maximum_102.py_ca117_maximum","user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":1493132471,"func_code":"def maximum(a):\n highest = 0\n for e in a:\n if e > highest:\n highest = e\n return highest","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":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":17143,"assignment_id":"maximum_102.py_ca117_maximum","user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":1493132471,"func_code":"def maximum(a):\n highest = 0\n for e in a:\n if e > highest:\n highest = e\n return highest","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":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":41673,"assignment_id":"minimum_102.py_ca117_minimum","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":1493146887,"func_code":"def minimum(l):\n l = sorted(minimum(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","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":11120,"assignment_id":"minimum_102.py_ca117_minimum","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":1493146915,"func_code":"def minimum(l):\n l = sorted(minimum(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","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19086,"assignment_id":"maximum_102.py_ca117_maximum","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":1493147006,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] < l[1]:\n l.remove(l[0])\n else:\n l.remove(l[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 elif l[0] < l[1]:\n l.remove(l[0])\n else:\n l.remove(l[1])\n return maximum(l)\n","comments":"# JL# tags: naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9895,"assignment_id":"maximum_102.py_ca117_maximum","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1493209535,"func_code":"def maximum(a, tmp=0):\n if a == []:\n return tmp\n if tmp == 0 or a[-1] > tmp:\n tmp = a[-1]\n return minimum(a[:-1], tmp)","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, tmp=None):\n if a == []:\n return tmp\n if tmp == None or a[-1] > tmp:\n tmp = a[-1]\n return maximum(a[:-1], tmp)\n","comments":"# JL# tags: incorrect initialization, naming issue, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":24920,"assignment_id":"maximum_102.py_ca117_maximum","user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":1493211719,"func_code":"def maximum(mylist):\n if len(mylist) == 1:\n return mylist[0]\n if mylist[0] < mylist[1]:\n mylist.remove(mylist[0])\n return minimum(mylist)\n else:\n mylist.remove(mylist[1])\n return minimum(mylist)","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(mylist):\n if len(mylist) == 1:\n return mylist[0]\n if mylist[0] < mylist[1]:\n mylist.remove(mylist[0])\n return maximum(mylist)\n else:\n mylist.remove(mylist[1])\n return maximum(mylist)\n","comments":"# JL# tags: naming issue","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":150,"assignment_id":"maximum_102.py_ca117_maximum","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":1493211725,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = minimum(l[1:])\n return m if m > l[0] else 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 m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","comments":"# JL# tags: recursion, naming issue","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":22073,"assignment_id":"maximum_102.py_ca117_maximum","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":1493211738,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = minimum(l[1:])\n return m if m > l[0] else 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 m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","comments":"# JL# tags: recursion, naming issue","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":15042,"assignment_id":"maximum_102.py_ca117_maximum","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":1493211746,"func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = minimum(l[1:])\n return m if m > l[0] else 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 m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","comments":"# JL# tags: recursion, naming issue","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":29672,"assignment_id":"maximum_102.py_ca117_maximum","user":"05f63619-1095-4d15-8436-1f0832a593bc","date":1493221320,"func_code":"def maximum(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[q])\n else:\n lst.remove(lst[0])\n return maximum(lst)","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(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[1])\n else:\n lst.remove(lst[0])\n return maximum(lst)\n","comments":"# JL# tags: typo, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":6664,"assignment_id":"maximum_102.py_ca117_maximum","user":"05f63619-1095-4d15-8436-1f0832a593bc","date":1493221340,"func_code":"def maximum(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[0])\n else:\n lst.remove(lst[0])\n return maximum(lst)","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(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[1])\n else:\n lst.remove(lst[0])\n return maximum(lst)\n","comments":"# JL# tags: typo, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":1703,"assignment_id":"recursive08.py_ca278_search","user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":1493315220,"func_code":"def search(str, letter):\n if str[i] == '':\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 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-comparison, missing-recursive-return","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":2861,"assignment_id":"maximum_102.py_ca117_maximum","user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":1493379933,"func_code":"def maximum(lis, p=0):\n if lis == []:\n return p\n n = lis.pop()\n if n > p:\n p = n\n return minimum(lis, p)","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(lis, p=None):\n if lis == []:\n return p\n n = lis.pop()\n if p == None or n > p:\n p = n\n return maximum(lis, p)\n","comments":"# JL# tags: naming issue, incorrect initialization, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":3832,"assignment_id":"maximum_102.py_ca117_maximum","user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":1493379949,"func_code":"def maximum(lis, p=0):\n if lis == []:\n return p\n n = lis.pop()\n if n > p:\n p = n\n return maximum(lis, p)","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(lis, p=None):\n if lis == []:\n return p\n n = lis.pop()\n if p == None or n > p:\n p = n\n return maximum(lis, p)\n","comments":"# JL# tags: incorrect initialization, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":9518,"assignment_id":"maximum_102.py_ca117_maximum","user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":1493379949,"func_code":"def maximum(lis, p=0):\n if lis == []:\n return p\n n = lis.pop()\n if n > p:\n p = n\n return maximum(lis, p)","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(lis, p=None):\n if lis == []:\n return p\n n = lis.pop()\n if p == None or n > p:\n p = n\n return maximum(lis, p)\n","comments":"# JL# tags: incorrect initialization, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":14802,"assignment_id":"maximum_102.py_ca117_maximum","user":"d566071f-0679-42ce-9081-3fac29a67d21","date":1493390297,"func_code":"def maximum(l, old_max=None):\n item = l[0]\n if item != None:\n new_l = l[1:]\n maximum(new_l, item if old_max == None or item > old_max else old_max)\n else:\n return old_max","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, old_max=None):\n item = l[0]\n if len(l) == 1:\n return item if old_max == None or item > old_max else old_max\n if item != None:\n new_l = l[1:]\n return maximum(new_l, item if old_max == None or item > old_max else\n old_max)\n else:\n return old_max\n","comments":"# JL# tags: index error, missing return, missing base case, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":36796,"assignment_id":"maximum_102.py_ca117_maximum","user":"d566071f-0679-42ce-9081-3fac29a67d21","date":1493390368,"func_code":"_A = None\n\n\ndef maximum(l, old_max=_A):\n try:\n item = l[0]\n except IndexError:\n item = _A\n if item is not _A:\n new_l = l[1:]\n maximum(new_l, item if old_max == _A or item > old_max else old_max)\n else:\n return old_max","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":"_A = None\n\n\ndef maximum(l, old_max=_A):\n try:\n item = l[0]\n except IndexError:\n item = _A\n if item is not _A:\n new_l = l[1:]\n return maximum(new_l, item if old_max == _A or item > old_max else\n old_max)\n else:\n return old_max\n","comments":"# JL# tags: missing return, recursion","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":3251,"assignment_id":"func_reverse.py_ca116_reverse","user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":1493927015,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":2336,"assignment_id":"reverse.py_ca277_reverse","user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":1499955439,"func_code":"def reverse(a):\n print(a[::-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":"def reverse(a):\n return a[::-1]\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":16,"assignment_id":"reverse.py_ca277_reverse","user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":1499955562,"func_code":"def reverse(a):\n print(a.reverse())","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 print(a.reverse())\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":29153,"assignment_id":"reverse.py_ca277_reverse","user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":1499955579,"func_code":"def reverse(a):\n return a.reverse()","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 a.reverse()\n return a\n","comments":"# tags: returning-none-by-accident, missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":37769,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504056805,"func_code":"def reverse():\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, missing-function-parameter","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":6530,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504056825,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":8239,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504056963,"func_code":"def reverse(b):\n a = b[::-1]","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] 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(b):\n a = b[::-1]\n return a\n","comments":"# tags: missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":2798,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504057012,"func_code":"def reverse(b):\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(b):\n return b[::-1]\n","comments":"# tags: printing-instead-of-returning, mismatch-between-parameter-and-variable-names","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":19087,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504057129,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":27245,"assignment_id":"func_reverse.py_ca116_reverse","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":1504057358,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":14905,"assignment_id":"reverse.py_ca277_reverse","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1510134926,"func_code":"def reverse(a, i):\n i = 0\n lines = sys.stdin.readlines()\n while i < len(a):\n print(lines[i] - 1 - i)\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":"","comments":"# tags: impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":15224,"assignment_id":"reverse.py_ca277_reverse","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":1510134926,"func_code":"def reverse(a, i):\n i = 0\n lines = sys.stdin.readlines()\n while i < len(a):\n print(lines[i] - 1 - i)\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":"","comments":"# tags: impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":5638,"assignment_id":"reverse.py_ca277_reverse","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1510138303,"func_code":"def reverse(n):\n reverse = a[len(a) - i - 1]\n return reverse","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":2016.0,"description":"Reverse a list of elements."} {"submission_id":40328,"assignment_id":"reverse.py_ca277_reverse","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1510138342,"func_code":"def reverse(n):\n reverse = a[len(a) - i - 1]\n return reverse","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":2016.0,"description":"Reverse a list of elements."} {"submission_id":37066,"assignment_id":"reverse.py_ca277_reverse","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1510141458,"func_code":"def reverse(a):\n a = a[::a - 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 a = a[::-1]\n return a\n","comments":"# tags: incorrect-range-usage-when-sorting","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":18221,"assignment_id":"reverse.py_ca277_reverse","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1510141479,"func_code":"def reverse(a):\n a[::a - 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 a = a[::-1]\n return a\n","comments":"# tags: missing-assignment, incorrect-range-usage-when-sorting","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":13955,"assignment_id":"reverse.py_ca277_reverse","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","date":1510141568,"func_code":"def reverse(a):\n a = a[::a - 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 a = a[::-1]\n return a\n","comments":"# tags: incorrect-range-usage-when-sorting","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":2731,"assignment_id":"reverse.py_ca277_reverse","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1510141658,"func_code":"def reverse(a):\n a = a[::-1]\n print(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 a = a[::-1]\n return a\n","comments":"# tags: printing-instead-of-returning, missing-return","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":6354,"assignment_id":"reverse.py_ca277_reverse","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1510142603,"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] = a[i]\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: invalid-assignment-in-swap, iterating-whole-list-while-swapping, missing-adjustment-of-loop-value","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":23454,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510142698,"func_code":"def reverse(a):\n i = 0\n j = len(a)\n while i < len(a):\n tmp = a[i]\n a[i] = a[j - i]\n a[j - i] = tmp\n i = i + 1\n print(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 j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j - i]\n a[j - i] = tmp\n i = i + 1\n return a\n","comments":"# tags: printing-instead-of-returning, missing-return, iterating-whole-list-while-swapping, index-overbound-in-iteration","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":33738,"assignment_id":"reverse.py_ca277_reverse","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1510142706,"func_code":"def reverse(test):\n n = len(test)\n x = ''\n for i in range(n - 1, -1, -1):\n x += test[i]\n return x","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(test):\n n = len(test)\n x = []\n for i in range(n - 1, -1, -1):\n x.append(test[i])\n return x\n","comments":"# tags: invalid-list-concatenation, not-using-a-temporary-list","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":13862,"assignment_id":"reverse.py_ca277_reverse","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","date":1510142706,"func_code":"def reverse(test):\n n = len(test)\n x = ''\n for i in range(n - 1, -1, -1):\n x += test[i]\n return x","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(test):\n n = len(test)\n x = []\n for i in range(n - 1, -1, -1):\n x.append(test[i])\n return x\n","comments":"# tags: invalid-list-concatenation, not-using-a-temporary-list","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":29785,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510142740,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i]\n a[len(a) - i] = tmp\n i = i + 1\n print(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: printing-instead-of-returning, index-overbound-in-iteration, iterating-whole-list-while-swapping","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":314,"assignment_id":"reverse.py_ca277_reverse","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1510142741,"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] = a[i]\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: invalid-assignment-in-swap, iterating-whole-list-while-swapping, missing-adjustment-of-loop-value","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":19741,"assignment_id":"reverse.py_ca277_reverse","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1510142811,"func_code":"def reverse(a):\n 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] = a[i]\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: setting-reversed-array-to-empty, iterating-whole-list-while-swapping, invalid-temp-variable-usage, missing-adjustment-of-loop-value","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":31938,"assignment_id":"reverse.py_ca277_reverse","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":1510142811,"func_code":"def reverse(a):\n 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] = a[i]\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: setting-reversed-array-to-empty, iterating-whole-list-while-swapping, invalid-temp-variable-usage, missing-adjustment-of-loop-value","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":16905,"assignment_id":"reverse.py_ca277_reverse","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1510143299,"func_code":"def reverse(a):\n print(reverse(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":"","comments":"# tags: missing-function, impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":17088,"assignment_id":"reverse.py_ca277_reverse","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":1510143299,"func_code":"def reverse(a):\n print(reverse(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":"","comments":"# tags: missing-function, impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":15213,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510144290,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i]\n a[len(a) - i] = tmp\n i = i + 1\n print(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: printing-instead-of-returning, index-overbound-in-iteration, iterating-whole-list-while-swapping","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":13346,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510144324,"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 print(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: iterating-whole-list-while-swapping, missing-return, printing-instead-of-returning","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":31897,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510144778,"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 print(a.rstrip())\n print(tmp)\n print(a[i])","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-return, printing-instead-of-returning, iterating-whole-list-while-swapping","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":30000,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510144865,"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 print(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: iterating-whole-list-while-swapping, missing-return, printing-instead-of-returning","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":13915,"assignment_id":"reverse.py_ca277_reverse","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","date":1510144941,"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([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: iterating-whole-list-while-swapping","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":16554,"assignment_id":"reverse.py_ca277_reverse","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1510673983,"func_code":"def reverse(a, i, j):\n a = []\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\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":"","comments":"# tags: impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":16231,"assignment_id":"reverse.py_ca277_reverse","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":1510673983,"func_code":"def reverse(a, i, j):\n a = []\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\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":"","comments":"# tags: impartial-solution","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":10085,"assignment_id":"reverse.py_ca277_reverse","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1510674436,"func_code":"def reverse(a):\n temp = []\n i = 0\n while i != len(a):\n temp.append(len(a) - 1)\n i = i + 1\n a = temp\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 temp = []\n i = 0\n while i != len(a):\n temp.append(a[len(a) - i - 1])\n i = i + 1\n a = temp\n return a\n","comments":"# tags: not-using-values-from-array, missing-index-in-iteration","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":11384,"assignment_id":"reverse.py_ca277_reverse","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1510674456,"func_code":"def reverse(a):\n temp = []\n i = 0\n while i != len(a):\n temp.append(len(a) - i)\n i = i + 1\n a = temp\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 temp = []\n i = 0\n while i != len(a):\n temp.append(a[len(a) - i - 1])\n i = i + 1\n a = temp\n return a\n","comments":"# tags: not-using-values-from-array, index-overbound-in-iteration","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":34899,"assignment_id":"reverse.py_ca277_reverse","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":1510674487,"func_code":"def reverse(a):\n temp = []\n i = 0\n while i != len(a):\n temp.append(a[len(a) - i])\n i = i + 1\n a = temp\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 temp = []\n i = 0\n while i != len(a):\n temp.append(a[len(a) - i - 1])\n i = i + 1\n a = temp\n return a\n","comments":"# tags: index-overbound-in-iteration","academic_year":2016.0,"description":"Reverse a list of elements."} {"submission_id":31189,"assignment_id":"func_reverse.py_ca116_reverse","user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":1512383540,"func_code":"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","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] 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":2016.0,"description":"Reverse a list of elements."} {"submission_id":2873,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1512391608,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":21895,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1512391608,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":7272,"assignment_id":"func_reverse.py_ca116_reverse","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","date":1512391608,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":540,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1512561783,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":11347,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1512561783,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":23208,"assignment_id":"func_reverse.py_ca116_reverse","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":1512577050,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n return\n\n\ndef reverse(a):\n return swap(a, 2, 3)","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 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":2016.0,"description":"Reverse a list of elements."} {"submission_id":22809,"assignment_id":"func_reverse.py_ca116_reverse","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":1512577170,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n return\n\n\ndef reverse(a):\n return swap(a, 2, 3)","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 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":2016.0,"description":"Reverse a list of elements."} {"submission_id":35358,"assignment_id":"func_reverse.py_ca116_reverse","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":1512577170,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n return\n\n\ndef reverse(a):\n return swap(a, 2, 3)","func_name":"reverse","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 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":2016.0,"description":"Reverse a list of elements."} {"submission_id":11802,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1512590036,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":32589,"assignment_id":"func_reverse.py_ca116_reverse","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":1512590036,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":6085,"assignment_id":"func_reverse.py_ca116_reverse","user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":1512609528,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":10214,"assignment_id":"func_reverse.py_ca116_reverse","user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":1512609528,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":13703,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1512643910,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":1496,"assignment_id":"func_reverse.py_ca116_reverse","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":1512643910,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":3930,"assignment_id":"func_reverse.py_ca116_reverse","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1512648688,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":26045,"assignment_id":"func_reverse.py_ca116_reverse","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":1512648688,"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":2016.0,"description":"Reverse a list of elements."} {"submission_id":22091,"assignment_id":"recursive08.py_ca278_search","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":1490651428,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":34667,"assignment_id":"recursive08.py_ca278_search","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":1490651445,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":33317,"assignment_id":"recursive08.py_ca278_search","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":1490651466,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":17060,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490659693,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":4567,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490659790,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":19209,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490659893,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30725,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490660122,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":22324,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490660234,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":2746,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490660234,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":30336,"assignment_id":"recursive08.py_ca278_search","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":1490660234,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","module":"ca278","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","comments":"# KC# non-recursive-implementation# returns string","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":24175,"assignment_id":"maximum_102.py_ca117_maximum","user":"41c113b8-6f57-4003-bed3-3587b2376170","date":1493080230,"func_code":"def quicksort(a, p, r):\n if r <= p:\n return\n q = partition(a, p, r)\n quicksort(a, p, q - 1)\n quicksort(a, q + 1, r)\n\n\ndef maximum(a):\n quicksort(a, 0, len(a) - 1)\n return 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":"","comments":"# KC# issue with annotation script, not with the solution","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":13521,"assignment_id":"maximum_102.py_ca117_maximum","user":"41c113b8-6f57-4003-bed3-3587b2376170","date":1493080230,"func_code":"def quicksort(a, p, r):\n if r <= p:\n return\n q = partition(a, p, r)\n quicksort(a, p, q - 1)\n quicksort(a, q + 1, r)\n\n\ndef maximum(a):\n quicksort(a, 0, len(a) - 1)\n return 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":"","comments":"# KC# issue with annotation script, not with the solution","academic_year":2016.0,"description":"Return the maximum element in a list of numbers."} {"submission_id":16982,"assignment_id":"iterative08.py_ca278_search","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":1490619745,"func_code":"def search(s, letter):\n print(letter in s)","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":31313,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490637488,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('ok')\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":"","comments":"# KC# partial solution","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":33194,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490637529,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == 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":"","comments":"# KC# wrong strategy","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":21503,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490637564,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('True')\n else:\n print('False')\n return","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==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":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":20978,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490637700,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==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# wrong strategy","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":16003,"assignment_id":"iterative08.py_ca278_search","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":1490638031,"func_code":"def search(x, letter):\n if type(x) == str and letter.isalpha():\n return 'True'\n else:\n return 'False'","func_name":"search","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==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# wrong strategy","academic_year":2016.0,"description":"Return whether a letter is part of a string"} {"submission_id":12972,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":1487939696,"func_code":"def swap_keys_values(d):\n return {v: k for v, k 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 return {v: k for k, v in list(d.items())}\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":6271,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":1487940709,"func_code":"def swap_keys_values(d):\n new_dict = {v: k for k, v in list(d.items())}\n print(sorted(new_dict.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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13309,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":1487963117,"func_code":"def swap_keys_values(dict):\n new_dict = {v: k for k, v in list(dict.items())}\n print([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(dict):\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13654,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":1487964283,"func_code":"def my_function(a):\n return a[1]\n\n\ndef swap_keys_values(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n\n def my_function(a):\n return a[1]\n for k in new_dict:\n l.append('({} : {})'.format(k, new_dict[k]))\n print('[' + ', '.join(sorted(l, key=my_function)) + ']')","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(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":10524,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":1487964591,"func_code":"def my_function(a):\n return a[1]\n\n\ndef swap_keys_values(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n\n def my_function(a):\n return a[1]\n for k in new_dict:\n l.append('({} : {})'.format(int(k), new_dict[k]))\n print('[' + ', '.join(sorted(l, key=itemgetter(-2))) + ']')\n print(type(l[1]))","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(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","comments":"# KC# wrong understanding of function","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":27255,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":1488106029,"func_code":"def swap_keys_values(d):\n {v: k for k, v in 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 d = {v: k for k, v in d.items()}\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":34754,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":1488136989,"func_code":"def swap_keys_values(d):\n {v: k for k, v in 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 d = {v: k for k, v in d.items()}\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":15653,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":1488136989,"func_code":"def swap_keys_values(d):\n {v: k for k, v in 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 d = {v: k for k, v in d.items()}\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13026,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":1488136989,"func_code":"def swap_keys_values(d):\n {v: k for k, v in 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 d = {v: k for k, v in d.items()}\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":16540,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":1488281480,"func_code":"def swap_keys_values(d):\n new_dict = {v: k for k, v in list(d.items())}\n print(sorted(new_dict.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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":38689,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":1488281480,"func_code":"def swap_keys_values(d):\n new_dict = {v: k for k, v in list(d.items())}\n print(sorted(new_dict.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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":5721,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":1488462367,"func_code":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return list(new.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 = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","comments":"# KC# wrong function return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13268,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":1488462442,"func_code":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return list(new.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 = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","comments":"# KC# wrong function return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":14170,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":1488462511,"func_code":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return list(new.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 = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","comments":"# KC# wrong function return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":10792,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":1488462543,"func_code":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return list(new.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 = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","comments":"# KC# wrong function return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13411,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"262b3841-5158-4b0c-be99-57281e73f267","date":1488531147,"func_code":"def swap_keys_values(d):\n list(zip(list(d.values()), list(d.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(d):\n return dict(zip(list(d.values()), list(d.keys())))\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":2191,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":1488536046,"func_code":"def swap_keys_values(d):\n d1 = {v: k for k, v in list(d.items())}\n print(list(d1.items()).sorted())","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":29317,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488566768,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in 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 d = dict((v, k) for k, v in d.items())\n return d\n","comments":"# KC# missing return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":35280,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488566936,"func_code":"def swap_keys_values(d):\n print(dict((v, k) for k, v in 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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":21560,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567039,"func_code":"def swap_keys_values(d):\n print(dict((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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":11931,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567156,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":5124,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567176,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n 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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":35182,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567209,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":28695,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567225,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# missing return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":29351,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567354,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = collections.OrderedDict(sorted(list(d.items()), key=lambda t: t[0]))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":9299,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567376,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":39650,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567457,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = SortedDict(d)\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":32357,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567487,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":3955,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567546,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(list(d.items()), key=sorter))","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":7236,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567596,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(list(d.items()), key=sorter))","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":7932,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567619,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":42001,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567641,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = list(d.items())\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return # wrong assignment","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":31985,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567688,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13698,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567808,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(list(d.items()), key=lambda x: x[1]))","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":28040,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567887,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n sd = sorted(d.items())\n print(sd)","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return # wrong assignment","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":416,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567904,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13730,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567919,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":35588,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488567947,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = sorted(d)\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return # wrong assignment","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":30891,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568155,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n d = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":9132,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568314,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n new_dict = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":21778,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568368,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n new_dict = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":30246,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568389,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n new_dict = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":12167,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568446,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n new_dict = sorted(list(d.items()), key=lambda t: t[0])\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":28568,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568467,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":17581,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568480,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC# print instead of return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":15842,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568499,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(list(d.items()), key=lambda t: t[0]))","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 = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":17623,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568561,"func_code":"def swap_keys_values(d):\n d = dict((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 d = dict((v, k) for k, v in list(d.items()))\n return d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":38590,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":1488568573,"func_code":"def swap_keys_values(d):\n new_dict = dict((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_dict = dict((v, k) for k, v in list(d.items()))\n return new_dict\n","comments":"# KC# missing return","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":26360,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":1488571237,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\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 = dict((v, k) for k, v in list(d.items()))\n return new_d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":24817,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":1488571237,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\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 = dict((v, k) for k, v in list(d.items()))\n return new_d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":31150,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":1488571237,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\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 = dict((v, k) for k, v in list(d.items()))\n return new_d\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":6172,"assignment_id":"swap_42.py_ca117_swap_keys_values","user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":1488575913,"func_code":"def swap_keys_values(d):\n new_dict = dict((k, v) for k, v in list(d.items()))\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 = dict((v, k) for k, v in list(d.items()))\n return new_dict\n","comments":"# KC","academic_year":2016.0,"description":"Swap keys with values."} {"submission_id":13863,"assignment_id":"minimum_102.py_ca117_minimum","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":1492773711,"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":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":24125,"assignment_id":"minimum_102.py_ca117_minimum","user":"3d19e1db-d496-420c-b077-41631364e4f7","date":1493036763,"func_code":"def minimum(numbers):\n if len(numbers) == 1:\n return numbers[0]\n elif numbers[0] < numbers[1]:\n numbers.remove[numbers[1]]\n else:\n numbers.remove(numbers[0])\n return minimum(numbers)","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(numbers):\n if len(numbers) == 1:\n return numbers[0]\n elif numbers[0] < numbers[1]:\n numbers.remove(numbers[1])\n else:\n numbers.remove(numbers[0])\n return minimum(numbers)\n","comments":"# KC# typos","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16142,"assignment_id":"minimum_102.py_ca117_minimum","user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":1493044915,"func_code":"def minimum(s):\n if n == 1:\n return s[0]\n else:\n min = minimum(s[1:], n - 1)\n if s[0] < min:\n return s[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(s):\n if len(s) == 1:\n return s[0]\n else:\n min = minimum(s[1:])\n if s[0] < min:\n return s[0]\n else:\n return min\n","comments":"# KC","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16495,"assignment_id":"minimum_102.py_ca117_minimum","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":1493056002,"func_code":"def minimum(l):\n a = l[len(l) - 1]\n if len(a) == 1:\n return l[0]\n if a >= minimum(l):\n return minimum([j for j in 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 a = l[len(l) - 1]\n if a >= minimum(l[:-1]):\n return minimum([j for j in l[:-1]])\n return a\n","comments":"","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17575,"assignment_id":"minimum_102.py_ca117_minimum","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":1493056516,"func_code":"def minimum(l):\n a = l[0]\n if len(l) == 1:\n return l[0]\n if a >= minimum(l[:-1]):\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 a = l[0]\n if len(l) == 1:\n return l[0]\n if a >= minimum(l[1:]):\n return minimum(l[1:])\n return a\n","comments":"# KC# missing case# wrong list slicing","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":21491,"assignment_id":"minimum_102.py_ca117_minimum","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":1493056981,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n for i in l:\n if i >= minimum(l[1:]):\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 else:\n if l[0] >= minimum(l[1:]):\n return minimum(l[1:])\n return l[0]\n","comments":"# KC# mixing recursion and iteration","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":22936,"assignment_id":"minimum_102.py_ca117_minimum","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":1493122672,"func_code":"def minimum(n):\n if len(n) == 1:\n return l[0]\n else:\n minr = minimum(n[1:])\n return n[0] if n[0] < minr else minr","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 minr = minimum(n[1:])\n return n[0] if n[0] < minr else minr\n","comments":"# KC","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":20350,"assignment_id":"minimum_102.py_ca117_minimum","user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":1493134164,"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 else:\n l.remove(l[0])\n return minimum()","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[1])\n else:\n l.remove(l[0])\n return minimum(l)\n","comments":"# KC# forgot argument in function call","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":1670,"assignment_id":"minimum_102.py_ca117_minimum","user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":1493166748,"func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tmp = minimum(l[1:])\n return tmp if tmp > l[0] else 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 tmp = minimum(l[1:])\n return tmp if tmp < l[0] else l[0]\n","comments":"# KC# wrong operator","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":18959,"assignment_id":"minimum_102.py_ca117_minimum","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1493207440,"func_code":"def minimum(a):\n if a == []:\n return 1\n tmp = a.pop()\n if tmp < minimun(a):\n return tmp","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":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17326,"assignment_id":"minimum_102.py_ca117_minimum","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1493207828,"func_code":"def minimum(a):\n if a.pop() < a[-1]:\n tmp = a.pop()\n if a == []:\n return tmp\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":"","comments":"# KC# partial solution# bad strategy","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":14121,"assignment_id":"minimum_102.py_ca117_minimum","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1493207872,"func_code":"def minimum(a):\n if a == []:\n return tmp\n if a.pop() < a[-1]:\n tmp = a.pop()\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":"","comments":"# KC# partial solution","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":23053,"assignment_id":"minimum_102.py_ca117_minimum","user":"a48376ed-7138-4481-a4da-74490838ea3e","date":1493208724,"func_code":"def minimum(a):\n if a == []:\n return b[0]\n if a[-1] < a[-2]:\n b.append(a[-1])\n if len(b) > 1:\n if b[0] > b[1]:\n b.remove(b[0])\n else:\n b.remove(b[1])\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":"","comments":"# KC# unkwown strategy","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":2277,"assignment_id":"minimum_102.py_ca117_minimum","user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":1493303861,"func_code":"def minimum(l):\n if l == []:\n return []\n temp = minimum(l[1:])\n if l[0] > temp[0]:\n temp = [l[0]]\n return temp[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 temp = minimum(l[1:])\n if l[0] < temp:\n temp = l[0]\n return temp\n","comments":"","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":17288,"assignment_id":"minimum_102.py_ca117_minimum","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":1493306301,"func_code":"def minimum(a, minimum=None):\n if not a:\n return minimum\n test = a.pop()\n if test < minimum or minimum == None:\n return minimum(a, test)\n else:\n return minimum(a, minimum)","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, mini=None):\n if not a:\n return mini\n test = a.pop()\n if mini == None or test < mini:\n return minimum(a, test)\n else:\n return minimum(a, mini)\n","comments":"# KC# wron variable naming# wrong ordering of conditions","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":16831,"assignment_id":"minimum_102.py_ca117_minimum","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":1493306590,"func_code":"def minimum(a, minimum=0):\n if not a:\n return minimum\n test = str(a.pop())\n if int(test) < int(minimum) or int(minimum) == 0:\n return minimum(a, test)\n return minimum(a, minimum)","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# wrong strategy","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":12333,"assignment_id":"minimum_102.py_ca117_minimum","user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":1493379493,"func_code":"def minimum(lis, p=0):\n if lis == []:\n return p\n n = pop(lis)\n if n > p:\n p = n\n return minimum(lis)","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: requires additional variable initialization","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":19613,"assignment_id":"minimum_102.py_ca117_minimum","user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":1493379516,"func_code":"def minimum(lis, p=0):\n if lis == []:\n return p\n n = lis.pop()\n if n > p:\n p = n\n return minimum(lis)","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# wrong strategy","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":27292,"assignment_id":"minimum_102.py_ca117_minimum","user":"d566071f-0679-42ce-9081-3fac29a67d21","date":1493390026,"func_code":"def minimum(l):\n min = inf\n for item in l:\n min = item if item < min else min\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 min = l[0]\n for item in l:\n min = item if item < min else min\n return min\n","comments":"# KC# wrong variable initialisation","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."} {"submission_id":28618,"assignment_id":"minimum_102.py_ca117_minimum","user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":1493406671,"func_code":"def minimum(a):\n if len(a) == 1:\n return a\n b = max(a)\n a = [c for c in a if c != b]\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 b = max(a)\n a = [c for c in a if c != b]\n return minimum(a)\n","comments":"# KC","academic_year":2016.0,"description":"Return the minimum element in a list of numbers."}