{"submission_id":28315,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"72504244-3803-4754-91e3-5c7732106556","academic_year":2015} {"submission_id":36245,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(a[len(a) - i - 1])\n i = i + 1","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"72504244-3803-4754-91e3-5c7732106556","academic_year":2015} {"submission_id":30688,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n 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","user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","academic_year":2015} {"submission_id":40460,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"2157ade0-6890-435b-8669-a884e3233bc7","academic_year":2015} {"submission_id":30828,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2015} {"submission_id":26006,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n t = a[i]\n a[i] = a[j]\n a[j] = t\n i = i + 1\n return a\n","user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","academic_year":2016} {"submission_id":24752,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"e8eb24cb-1a57-439b-8705-aed3cec25793","academic_year":2016} {"submission_id":27057,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","academic_year":2016} {"submission_id":24099,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","academic_year":2016} {"submission_id":16134,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"75a32f49-710d-463f-8fee-0ae9b91a3034","academic_year":2016} {"submission_id":7085,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","academic_year":2016} {"submission_id":23953,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"05f63619-1095-4d15-8436-1f0832a593bc","academic_year":2016} {"submission_id":38244,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","academic_year":2016} {"submission_id":15574,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"93426de2-87e4-4c00-9910-de51627bd576","academic_year":2016} {"submission_id":42010,"func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","academic_year":2016} {"submission_id":23084,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","academic_year":2016} {"submission_id":20268,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":14859,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","academic_year":2016} {"submission_id":8246,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i += 1\n return a\n","user":"41c113b8-6f57-4003-bed3-3587b2376170","academic_year":2016} {"submission_id":1101,"func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","academic_year":2016} {"submission_id":26476,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"4733f087-f7f5-4b28-b898-9a23b2f59251","academic_year":2016} {"submission_id":11958,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i += 1\n j = j - 1\n return a\n","user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","academic_year":2016} {"submission_id":11945,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < j:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","academic_year":2016} {"submission_id":31694,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","academic_year":2016} {"submission_id":28558,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","academic_year":2016} {"submission_id":40445,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1\n return a\n","user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","academic_year":2016} {"submission_id":38802,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":16664,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return str, letter","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":31036,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":15943,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":20818,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":39141,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":39083,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return False\n else:\n return True","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","academic_year":2016} {"submission_id":6387,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return False\n return True","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","academic_year":2016} {"submission_id":39335,"func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","academic_year":2016} {"submission_id":41618,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"52070898-b2dd-4882-a9a9-65bd9d55725a","academic_year":2016} {"submission_id":5685,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"52070898-b2dd-4882-a9a9-65bd9d55725a","academic_year":2016} {"submission_id":27712,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return string","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n else:\n return False\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":39976,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return 1","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n else:\n return False\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":12090,"func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return letter","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if letter in string:\n return True\n else:\n return False\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":11572,"func_code":"def search(str, letter):\n list(map(split, str))\n if letter in str:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"9b929794-1500-4125-bf6c-79d74c111918","academic_year":2016} {"submission_id":41424,"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'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i += 1\n return False\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":34419,"func_code":"def search(str, letter, pos):\n if letter in str:\n return True\n else:\n return False","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":24121,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":23471,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":19179,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":22122,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":42174,"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])","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":17180,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":23077,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n if string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":34560,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":23520,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":24062,"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","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":12275,"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","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":1726,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":3698,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":33617,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":25896,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":3214,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":42094,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":31929,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","academic_year":2016} {"submission_id":37546,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","academic_year":2016} {"submission_id":13997,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":25341,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":8808,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":26679,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":13725,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":30716,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":33875,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":10739,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":6539,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":38764,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"e787ded7-43af-4b69-82c1-c646ab388711","academic_year":2016} {"submission_id":15723,"func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n return False\n","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","academic_year":2016} {"submission_id":11269,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":18880,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":30639,"func_code":"def search(str, letter):\n for c in str:\n if letter == c:\n return True\n else:\n return False","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for c in str:\n if letter == c:\n return True\n return False\n","user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","academic_year":2016} {"submission_id":37190,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":13090,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":11156,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"b9e7e608-6036-4d44-8770-a7036176b53c","academic_year":2016} {"submission_id":26276,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":19306,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n elif letter not in str:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n elif letter not in str:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":8133,"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')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":15930,"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')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i += 1\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":41624,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":34002,"func_code":"def search(str, letter):\n if letter in str:\n print('True'.rstrip())\n else:\n print('False'.rstrip())","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":22433,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":38168,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":978,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":31447,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":14096,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":26995,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":38548,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":23614,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":36124,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"7761b9ac-f093-487b-8401-cf2d01636e78","academic_year":2016} {"submission_id":16643,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","academic_year":2016} {"submission_id":30752,"func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","academic_year":2016} {"submission_id":23223,"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'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i += 1\n return False\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":28666,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if len(str) == 0:\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":26638,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":2583,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":3244,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","academic_year":2016} {"submission_id":30851,"func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":12299,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":22277,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":5277,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":8106,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":15884,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":4330,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":22793,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":27063,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":39036,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":20235,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":16836,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":19196,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","academic_year":2016} {"submission_id":36099,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","academic_year":2016} {"submission_id":16352,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"106d34e0-d03c-42ab-a67a-b88759ff6307","academic_year":2016} {"submission_id":40004,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","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","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":35774,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":34000,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","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","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":6569,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","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","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":8338,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":918,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":39092,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":8569,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":41888,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":6667,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":38594,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(string, letter):\n if len(string) == 0:\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)\n","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":21446,"func_code":"def maximum(l):\n return l.sort()\n l[-1]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n l.sort()\n return l[-1]\n","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","academic_year":2016} {"submission_id":15763,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n 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","user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","academic_year":2016} {"submission_id":30697,"func_code":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e < biggest:\n biggest = e\n return biggest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e > biggest:\n biggest = e\n return biggest\n","user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","academic_year":2016} {"submission_id":10884,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = l[0]\n for i in l:\n if i > max:\n max = i\n return max\n","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","academic_year":2016} {"submission_id":15440,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n max = l[0]\n for i in l:\n if i > max:\n max = i\n return max\n","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","academic_year":2016} {"submission_id":34333,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n else:\n l.remove(l[0])\n return maximum(l)\n","user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","academic_year":2016} {"submission_id":30050,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","academic_year":2016} {"submission_id":34661,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","academic_year":2016} {"submission_id":11515,"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","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(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","user":"45fe5d71-35bd-4b87-b28c-71b204939543","academic_year":2016} {"submission_id":11894,"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","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(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","user":"45fe5d71-35bd-4b87-b28c-71b204939543","academic_year":2016} {"submission_id":8130,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"45fe5d71-35bd-4b87-b28c-71b204939543","academic_year":2016} {"submission_id":33238,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l, 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","user":"262b3841-5158-4b0c-be99-57281e73f267","academic_year":2016} {"submission_id":1533,"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])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n 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","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","academic_year":2016} {"submission_id":17233,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"7a72123c-6850-4e9f-b407-211283f04a4c","academic_year":2016} {"submission_id":8798,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"7a72123c-6850-4e9f-b407-211283f04a4c","academic_year":2016} {"submission_id":28783,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else maxr\n","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","academic_year":2016} {"submission_id":27080,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else maxr\n","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","academic_year":2016} {"submission_id":33418,"func_code":"def maximum(a):\n highest = 0\n for e in a:\n if e > highest:\n highest = e\n return highest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","academic_year":2016} {"submission_id":17143,"func_code":"def maximum(a):\n highest = 0\n for e in a:\n if e > highest:\n highest = e\n return highest","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n m = l[0]\n for line in l:\n if line > m:\n m = line\n return m\n","user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","academic_year":2016} {"submission_id":41673,"func_code":"def minimum(l):\n l = sorted(minimum(l))\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","academic_year":2016} {"submission_id":11120,"func_code":"def minimum(l):\n l = sorted(minimum(l))\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l = sorted(l)\n return l[0]\n","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","academic_year":2016} {"submission_id":19086,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n elif l[0] < l[1]:\n l.remove(l[0])\n else:\n l.remove(l[1])\n return maximum(l)\n","user":"2eb2f93d-3491-4b0b-bad9-894c90595058","academic_year":2016} {"submission_id":9895,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(a, 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","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":24920,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","academic_year":2016} {"submission_id":150,"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]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","academic_year":2016} {"submission_id":22073,"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]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","academic_year":2016} {"submission_id":15042,"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]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l):\n if len(l) == 1:\n return l[0]\n m = maximum(l[1:])\n return m if m > l[0] else l[0]\n","user":"bd03ecd6-cea3-4854-803a-b14d429489a7","academic_year":2016} {"submission_id":29672,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"05f63619-1095-4d15-8436-1f0832a593bc","academic_year":2016} {"submission_id":6664,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"05f63619-1095-4d15-8436-1f0832a593bc","academic_year":2016} {"submission_id":1703,"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)","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)\n","user":"fc19956d-3237-43b9-841d-e5882c3359f1","academic_year":2016} {"submission_id":2861,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e5db5e57-0261-4967-963a-42d1a98c03de","academic_year":2016} {"submission_id":3832,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e5db5e57-0261-4967-963a-42d1a98c03de","academic_year":2016} {"submission_id":9518,"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)","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(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","user":"e5db5e57-0261-4967-963a-42d1a98c03de","academic_year":2016} {"submission_id":14802,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"def maximum(l, 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","user":"d566071f-0679-42ce-9081-3fac29a67d21","academic_year":2016} {"submission_id":36796,"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","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"_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","user":"d566071f-0679-42ce-9081-3fac29a67d21","academic_year":2016} {"submission_id":3251,"func_code":"def reverse(a):\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","academic_year":2016} {"submission_id":2336,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n return a[::-1]\n","user":"03141ef3-f364-4b7c-9f52-990a173ac162","academic_year":2016} {"submission_id":16,"func_code":"def reverse(a):\n print(a.reverse())","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n print(a.reverse())\n return a\n","user":"03141ef3-f364-4b7c-9f52-990a173ac162","academic_year":2016} {"submission_id":29153,"func_code":"def reverse(a):\n return a.reverse()","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n a.reverse()\n return a\n","user":"03141ef3-f364-4b7c-9f52-990a173ac162","academic_year":2016} {"submission_id":37769,"func_code":"def reverse():\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":6530,"func_code":"def reverse(a):\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":8239,"func_code":"def reverse(b):\n a = b[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(b):\n a = b[::-1]\n return a\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":2798,"func_code":"def reverse(b):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(b):\n return b[::-1]\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":19087,"func_code":"def reverse(a):\n a = a[::-1]","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":27245,"func_code":"def reverse(a):\n print(a[::-1])","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n return a[::-1]\n","user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","academic_year":2016} {"submission_id":14905,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2016} {"submission_id":15224,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","academic_year":2016} {"submission_id":5638,"func_code":"def reverse(n):\n reverse = a[len(a) - i - 1]\n return reverse","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2016} {"submission_id":40328,"func_code":"def reverse(n):\n reverse = a[len(a) - i - 1]\n return reverse","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2016} {"submission_id":37066,"func_code":"def reverse(a):\n a = a[::a - 1]\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2016} {"submission_id":18221,"func_code":"def reverse(a):\n a[::a - 1]\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2016} {"submission_id":13955,"func_code":"def reverse(a):\n a = a[::a - 1]\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"6cfd63a4-4ae6-4e36-a1eb-a1b3142265bb","academic_year":2016} {"submission_id":2731,"func_code":"def reverse(a):\n a = a[::-1]\n print(a)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n a = a[::-1]\n return a\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2016} {"submission_id":6354,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2016} {"submission_id":23454,"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)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n 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","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":33738,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(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","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2016} {"submission_id":13862,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(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","user":"c45598e5-3acc-4052-b18a-228b6bd842f6","academic_year":2016} {"submission_id":29785,"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)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":314,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2016} {"submission_id":19741,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2016} {"submission_id":31938,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","academic_year":2016} {"submission_id":16905,"func_code":"def reverse(a):\n print(reverse(a))","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2016} {"submission_id":17088,"func_code":"def reverse(a):\n print(reverse(a))","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","academic_year":2016} {"submission_id":15213,"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)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":13346,"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)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":31897,"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])","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":30000,"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)","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":13915,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a\n","user":"e84d5440-bfc2-41cd-a020-f2cd55cb79b4","academic_year":2016} {"submission_id":16554,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2016} {"submission_id":16231,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"","user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","academic_year":2016} {"submission_id":10085,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n 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","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2016} {"submission_id":11384,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n 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","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2016} {"submission_id":34899,"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","assignment_id":"reverse_iter","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([20, 10, 0, -10, -20])==[-20, -10, 0, 10, 20] and reverse(['toto', True, [10, 0, 9], 12.8, 6])==[6, 12.8, [10, 0, 9], True, 'toto']","annotation":"def reverse(a):\n 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","user":"c601c339-f2b7-4564-a96b-2de852eabb7b","academic_year":2016} {"submission_id":31189,"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","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1\n return a\n","user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","academic_year":2016} {"submission_id":2873,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2016} {"submission_id":21895,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2016} {"submission_id":7272,"func_code":"def reverse(a):\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n a = b\n return a\n","user":"334b0f61-5fa3-43cf-8691-29f975dd7270","academic_year":2016} {"submission_id":540,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2016} {"submission_id":11347,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2016} {"submission_id":23208,"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)","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","academic_year":2016} {"submission_id":22809,"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)","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","academic_year":2016} {"submission_id":35358,"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)","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"","user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","academic_year":2016} {"submission_id":11802,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2016} {"submission_id":32589,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","academic_year":2016} {"submission_id":6085,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","academic_year":2016} {"submission_id":10214,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a\n","user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","academic_year":2016} {"submission_id":13703,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2016} {"submission_id":1496,"func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1\n return a\n","user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","academic_year":2016} {"submission_id":3930,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2016} {"submission_id":26045,"func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","assignment_id":"reverse_by_swap","func_name":"reverse","description":"Reverse a list of elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","annotation":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1\n return a\n","user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","academic_year":2016} {"submission_id":22091,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","academic_year":2016} {"submission_id":34667,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","academic_year":2016} {"submission_id":33317,"func_code":"def search(str, letter):\n for item in str:\n return True\n return False","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False\n","user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","academic_year":2016} {"submission_id":17060,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":4567,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":19209,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":30725,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":22324,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":2746,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":30336,"func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","assignment_id":"search_recur","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False\n","user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","academic_year":2016} {"submission_id":24175,"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]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"","user":"41c113b8-6f57-4003-bed3-3587b2376170","academic_year":2016} {"submission_id":13521,"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]","assignment_id":"maximum","func_name":"maximum","description":"Return the maximum element in a list of numbers.","test":"assert maximum([0])==0 and maximum([67, 1, 2, -2, 0])==67 and maximum([0, -2, 2, 1, 67])==67 and maximum([-10, -23, -45, -9, -45617])==-9","annotation":"","user":"41c113b8-6f57-4003-bed3-3587b2376170","academic_year":2016} {"submission_id":16982,"func_code":"def search(s, letter):\n print(letter in s)","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"aaa0b462-c89e-49f8-8886-ec2961496a19","academic_year":2016} {"submission_id":31313,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('ok')\n else:\n print('false')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":33194,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('True')\n else:\n print('False')","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":21503,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('True')\n else:\n print('False')\n return","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":20978,"func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":16003,"func_code":"def search(x, letter):\n if type(x) == str and letter.isalpha():\n return 'True'\n else:\n return 'False'","assignment_id":"search_iter","func_name":"search","description":"Return whether a letter is part of a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","annotation":"","user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","academic_year":2016} {"submission_id":12972,"func_code":"def swap_keys_values(d):\n return {v: k for v, k in list(d.items())}","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n return {v: k for k, v in list(d.items())}\n","user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","academic_year":2016} {"submission_id":6271,"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()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"98d44d17-92f8-4274-915e-b88bdd9dca26","academic_year":2016} {"submission_id":13309,"func_code":"def swap_keys_values(dict):\n new_dict = {v: k for k, v in list(dict.items())}\n print([new_dict])","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dict):\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","academic_year":2016} {"submission_id":13654,"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)) + ']')","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","academic_year":2016} {"submission_id":10524,"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]))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(dict):\n l = []\n new_dict = {v: k for k, v in list(dict.items())}\n return new_dict\n","user":"9e18f731-fa38-496b-927b-db0cd1aa3409","academic_year":2016} {"submission_id":27255,"func_code":"def swap_keys_values(d):\n {v: k for k, v in d.items}\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = {v: k for k, v in d.items()}\n return d\n","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","academic_year":2016} {"submission_id":34754,"func_code":"def swap_keys_values(d):\n {v: k for k, v in d.items}\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = {v: k for k, v in d.items()}\n return d\n","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","academic_year":2016} {"submission_id":15653,"func_code":"def swap_keys_values(d):\n {v: k for k, v in d.items}\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = {v: k for k, v in d.items()}\n return d\n","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","academic_year":2016} {"submission_id":13026,"func_code":"def swap_keys_values(d):\n {v: k for k, v in d.items}\n return d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = {v: k for k, v in d.items()}\n return d\n","user":"9550e418-a019-49c2-a2e9-8322a300fb6f","academic_year":2016} {"submission_id":16540,"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()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"46954879-c4e4-4ce6-87d4-00184c62b522","academic_year":2016} {"submission_id":38689,"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()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"46954879-c4e4-4ce6-87d4-00184c62b522","academic_year":2016} {"submission_id":5721,"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())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","user":"6ae36e81-5a79-4a87-a484-a86635591a14","academic_year":2016} {"submission_id":13268,"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())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","user":"6ae36e81-5a79-4a87-a484-a86635591a14","academic_year":2016} {"submission_id":14170,"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())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","user":"6ae36e81-5a79-4a87-a484-a86635591a14","academic_year":2016} {"submission_id":10792,"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())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new = {}\n for z, q in list(d.items()):\n new[q] = z\n return new\n","user":"6ae36e81-5a79-4a87-a484-a86635591a14","academic_year":2016} {"submission_id":13411,"func_code":"def swap_keys_values(d):\n list(zip(list(d.values()), list(d.keys())))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n return dict(zip(list(d.values()), list(d.keys())))\n","user":"262b3841-5158-4b0c-be99-57281e73f267","academic_year":2016} {"submission_id":2191,"func_code":"def swap_keys_values(d):\n d1 = {v: k for k, v in list(d.items())}\n print(list(d1.items()).sorted())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","academic_year":2016} {"submission_id":29317,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in d.items())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in d.items())\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":35280,"func_code":"def swap_keys_values(d):\n print(dict((v, k) for k, v in d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":21560,"func_code":"def swap_keys_values(d):\n print(dict((v, k) for k, v in list(d.items())))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":11931,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(list(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":5124,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n list(d.items())","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":35182,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(list(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":28695,"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())))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":29351,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":9299,"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()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":39650,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":32357,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":3955,"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))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":7236,"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))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":7932,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(list(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":42001,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":31985,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(d)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":13698,"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]))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":28040,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":416,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(d)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":13730,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(sorted(d))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":35588,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":30891,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":9132,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":21778,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":30246,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":12167,"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)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":28568,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(new_dict)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":17581,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n print(d)","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":15842,"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]))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":17623,"func_code":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n d = dict((v, k) for k, v in list(d.items()))\n return d\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":38590,"func_code":"def swap_keys_values(d):\n new_dict = dict((v, k) for k, v in list(d.items()))","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = dict((v, k) for k, v in list(d.items()))\n return new_dict\n","user":"1a650795-f8bf-47db-90f0-c896555da6d7","academic_year":2016} {"submission_id":26360,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = dict((v, k) for k, v in list(d.items()))\n return new_d\n","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","academic_year":2016} {"submission_id":24817,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = dict((v, k) for k, v in list(d.items()))\n return new_d\n","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","academic_year":2016} {"submission_id":31150,"func_code":"def swap_keys_values(d):\n new_d = d((v, k) for k, v in list(d.items()))\n return new_d","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_d = dict((v, k) for k, v in list(d.items()))\n return new_d\n","user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","academic_year":2016} {"submission_id":6172,"func_code":"def swap_keys_values(d):\n new_dict = dict((k, v) for k, v in list(d.items()))\n return new_dict","assignment_id":"swap_keys_values","func_name":"swap_keys_values","description":"Swap keys with values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","annotation":"def swap_keys_values(d):\n new_dict = dict((v, k) for k, v in list(d.items()))\n return new_dict\n","user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","academic_year":2016} {"submission_id":13863,"func_code":"def minimum(l):\n l = l.sort()\n return l[0]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n l.sort()\n return l[0]\n","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","academic_year":2016} {"submission_id":24125,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(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","user":"3d19e1db-d496-420c-b077-41631364e4f7","academic_year":2016} {"submission_id":16142,"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","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(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","user":"45fe5d71-35bd-4b87-b28c-71b204939543","academic_year":2016} {"submission_id":16495,"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]])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n a = l[len(l) - 1]\n if a >= minimum(l[:-1]):\n return minimum([j for j in l[:-1]])\n return a\n","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","academic_year":2016} {"submission_id":17575,"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])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n 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","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","academic_year":2016} {"submission_id":21491,"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:])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n if l[0] >= minimum(l[1:]):\n return minimum(l[1:])\n return l[0]\n","user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","academic_year":2016} {"submission_id":22936,"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","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(n):\n if len(n) == 1:\n return n[0]\n else:\n minr = minimum(n[1:])\n return n[0] if n[0] < minr else minr\n","user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","academic_year":2016} {"submission_id":20350,"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()","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] < l[1]:\n l.remove(l[1])\n else:\n l.remove(l[0])\n return minimum(l)\n","user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","academic_year":2016} {"submission_id":1670,"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]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tmp = minimum(l[1:])\n return tmp if tmp < l[0] else l[0]\n","user":"a6392e0c-005c-4131-a7bb-80cf6af877de","academic_year":2016} {"submission_id":18959,"func_code":"def minimum(a):\n if a == []:\n return 1\n tmp = a.pop()\n if tmp < minimun(a):\n return tmp","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":17326,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":14121,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":23053,"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])","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"a48376ed-7138-4481-a4da-74490838ea3e","academic_year":2016} {"submission_id":2277,"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]","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n if len(l) == 1:\n return l[0]\n temp = minimum(l[1:])\n if l[0] < temp:\n temp = l[0]\n return temp\n","user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","academic_year":2016} {"submission_id":17288,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a, 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","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","academic_year":2016} {"submission_id":16831,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","academic_year":2016} {"submission_id":12333,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"e5db5e57-0261-4967-963a-42d1a98c03de","academic_year":2016} {"submission_id":19613,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"","user":"e5db5e57-0261-4967-963a-42d1a98c03de","academic_year":2016} {"submission_id":27292,"func_code":"def minimum(l):\n min = inf\n for item in l:\n min = item if item < min else min\n return min","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(l):\n min = l[0]\n for item in l:\n min = item if item < min else min\n return min\n","user":"d566071f-0679-42ce-9081-3fac29a67d21","academic_year":2016} {"submission_id":28618,"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)","assignment_id":"minimum","func_name":"minimum","description":"Return the minimum element in a list of numbers.","test":"assert minimum([0])==0 and minimum([2, 10, 23, 9, 187])==2 and minimum([-2, -26, 7, -123, -1236521])==-1236521 and minimum([3896, 3673, 45, 16715, 23673])==45","annotation":"def minimum(a):\n if len(a) == 1:\n return a[0]\n b = max(a)\n a = [c for c in a if c != b]\n return minimum(a)\n","user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","academic_year":2016}