diff --git "a/data/dublin_data_train.jsonl" "b/data/dublin_data_train.jsonl" --- "a/data/dublin_data_train.jsonl" +++ "b/data/dublin_data_train.jsonl" @@ -1,31 +1,31 @@ -{"submission_id":31156,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:26:19","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6431,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 11:33:11","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2595,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11013,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34545,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38491,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18695,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28514,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33558,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25266,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33147,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24843,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32435,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17374,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def circle_area(radius):\n area = 3.14 * radius ** 2\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5582,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2891,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def rectangle_perimeter(length, width):\n perimeter = length * 2 + width * 2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22500,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28205,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2016-11-02 14:22:48","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10222,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31543,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32459,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14054,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16300,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1974,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27054,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34989,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11789,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9362,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":31156,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:26:19","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":6431,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 11:33:11","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2595,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11013,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":34545,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":38491,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18695,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":28514,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":33558,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":25266,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":33147,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":24843,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-02 11:46:18","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":32435,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":17374,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def circle_area(radius):\n area = 3.14 * radius ** 2\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":5582,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2891,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def rectangle_perimeter(length, width):\n perimeter = length * 2 + width * 2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":22500,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2016-11-02 12:00:07","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":28205,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2016-11-02 14:22:48","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":10222,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":31543,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":32459,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":14054,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_area(radius):\n cirarea = 3.14 * radius * radius\n return cirarea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":16300,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":1974,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27054,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def circle_circumference(radius):\n circum = 2 * 3.14 * radius\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":34989,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":11789,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def rectangle_perimeter(length, width):\n rectper = (length + width) * 2\n return rectper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":9362,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-11-07 10:30:46","func_code":"def square_perimeter(side):\n par = side * 4\n return par","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":15210,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-09 04:04:22","func_code":"def reverse(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[len(a) - i - 1])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":30147,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-11-09 11:26:49","func_code":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i += 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":9559,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-11-09 11:28:01","func_code":"def reverse(a):\n i = 0\n b = []\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i += 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} @@ -35,52 +35,52 @@ {"submission_id":41886,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-11-09 15:51:30","func_code":"def reverse(lines):\n import sys\n lines = sys.stdin.readlines()\n return lines","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":false} {"submission_id":8463,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-11-11 14:19:49","func_code":"def reverse(test):\n b = []\n i = 0\n while i < len(test):\n b.append(test[len(test) - 1 - i])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":28470,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-11-11 14:19:49","func_code":"def reverse(test):\n b = []\n i = 0\n while i < len(test):\n b.append(test[len(test) - 1 - i])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":35792,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:48:32","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41601,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16408,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def rectangle_perimeter(n, m):\n return 2 * (n + m)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29550,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21849,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5944,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32724,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def rectangle_perimeter(n, m):\n return 2 * (n + m)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7259,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42119,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_perimeter(n):\n return 4 * n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22066,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30832,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_perimeter(n):\n return 4 * n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":35792,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:48:32","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":41601,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":16408,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def rectangle_perimeter(n, m):\n return 2 * (n + m)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":29550,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":21849,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":5944,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":32724,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def rectangle_perimeter(n, m):\n return 2 * (n + m)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":7259,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":42119,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_perimeter(n):\n return 4 * n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":22066,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_area(n):\n return n ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":30832,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 17:59:54","func_code":"def square_perimeter(n):\n return 4 * n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":9321,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-11-13 18:52:10","func_code":"def reverse(a):\n i = 0\n while i < len(a):\n return a[::-1]\n i = i + 1","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":false} -{"submission_id":14622,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-12-01 13:53:48","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36721,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-12-01 14:06:07","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20237,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-12-01 14:06:07","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":14622,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-12-01 13:53:48","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":36721,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-12-01 14:06:07","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":20237,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-12-01 14:06:07","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":30688,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-12-01 14:08:15","func_code":"def reverse(a):\n i = 0\n tmp = ''\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2015,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":13565,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-12-01 14:23:41","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n j = i + 1\n while j < len(a):\n if a[j] < a[i]:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j += 1\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":13352,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-12-01 14:23:41","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n j = i + 1\n while j < len(a):\n if a[j] < a[i]:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n j += 1\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":23622,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-12-01 16:07:37","func_code":"def swapi(a, i, j):\n if a[j] < a[i]:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n j = i\n while j < len(a):\n swapi(a, i, j)\n j += 1\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":3205,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-12-01 16:07:37","func_code":"def swapi(a, i, j):\n if a[j] < a[i]:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n j = i\n while j < len(a):\n swapi(a, i, j)\n j += 1\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":28475,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 19:55:26","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23480,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 20:01:08","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27759,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 20:01:08","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16395,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-12-03 13:47:36","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":28475,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 19:55:26","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":23480,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 20:01:08","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":27759,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-01 20:01:08","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":16395,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-12-03 13:47:36","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":10374,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-03 15:54:29","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":37547,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-03 15:54:29","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":40460,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-12-04 09:44:21","func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2015,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":1689,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-12-04 10:03:47","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":10354,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-12-04 10:03:47","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":19259,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 17:59:14","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19874,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 18:02:14","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39732,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 18:02:14","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4559,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:17:51","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24595,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:17:51","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":33085,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:27:15","func_code":"def circumference(x):\n return 2 * pie * x","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23704,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:27:15","func_code":"def area(x):\n return pie * (x * x)","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13159,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:36:35","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":486,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def circle_circumference(r):\n cc = 2 * 3.14 * r\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18974,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def rectangle_perimeter(a, b):\n rp = 2 * a + 2 * b\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23752,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def circle_area(r):\n ca = r * r * 3.14\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5497,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29949,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def square_perimeter(p):\n sq_p = 4 * p\n return sq_p","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":19259,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 17:59:14","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":19874,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 18:02:14","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39732,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2016-12-04 18:02:14","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4559,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:17:51","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":24595,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:17:51","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":33085,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:27:15","func_code":"def circumference(x):\n return 2 * pie * x","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":23704,"user":"fac2ee37-8224-43e0-9c23-7cc249889343","date":"2016-12-05 10:27:15","func_code":"def area(x):\n return pie * (x * x)","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":13159,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:36:35","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":486,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def circle_circumference(r):\n cc = 2 * 3.14 * r\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":18974,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def rectangle_perimeter(a, b):\n rp = 2 * a + 2 * b\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":23752,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def circle_area(r):\n ca = r * r * 3.14\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":5497,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29949,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2016-12-05 10:52:45","func_code":"def square_perimeter(p):\n sq_p = 4 * p\n return sq_p","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":8308,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-12-06 11:33:53","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = low + (high - low) \/ 2\n assert low <= mid < high\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":27066,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:40:40","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":61,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:54:36","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":252,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:54:36","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":27066,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:40:40","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":61,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:54:36","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":252,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2016-12-06 13:54:36","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":11391,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-12-06 13:55:15","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (high + low) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":38128,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-12-06 13:55:25","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":32728,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-12-06 13:55:39","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (high + low) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} @@ -148,15 +148,15 @@ {"submission_id":982,"user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":"2016-12-06 14:46:24","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":6975,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-12-06 14:46:52","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":9414,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2016-12-06 14:48:23","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":29659,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_perimeter(s):\n return s * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1880,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_area(r):\n area = r * r * 3.14\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8950,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n perimeter = x1 + y1 + x2 + y2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22116,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_circumference(r):\n circumference = 2 * 3.14 * r\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23555,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_area(r):\n area = r * r * 3.14\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32347,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11452,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_perimeter(s):\n return s * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38295,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_circumference(r):\n circumference = 2 * 3.14 * r\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24487,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n perimeter = x1 + y1 + x2 + y2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":29659,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_perimeter(s):\n return s * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":1880,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_area(r):\n area = r * r * 3.14\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":8950,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n perimeter = x1 + y1 + x2 + y2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":22116,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_circumference(r):\n circumference = 2 * 3.14 * r\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":23555,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_area(r):\n area = r * r * 3.14\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":32347,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11452,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def square_perimeter(s):\n return s * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":38295,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def circle_circumference(r):\n circumference = 2 * 3.14 * r\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":24487,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2016-12-06 14:50:19","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n perimeter = x1 + y1 + x2 + y2\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} {"submission_id":1284,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-12-06 14:56:21","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":8502,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-06 15:01:52","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":35126,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-06 15:01:52","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} @@ -164,517 +164,517 @@ {"submission_id":33834,"user":"109505d5-be18-4a61-8318-5d522de4300e","date":"2016-12-06 15:07:51","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":27213,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2016-12-06 15:08:33","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":24170,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-12-06 15:16:59","func_code":"def bsearch(a, q):\n high = len(a)\n low = 0\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":34114,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-12-06 15:28:13","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21434,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-12-06 15:28:13","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":34114,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-12-06 15:28:13","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":21434,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-12-06 15:28:13","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":41987,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2016-12-06 15:58:11","func_code":"def bsearch(a, q):\n start = 0\n end = len(a)\n while start < end:\n middle = (start + end) \/ 2\n if a[middle] < q:\n start = middle + 1\n else:\n end = middle\n return start","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":32545,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-12-06 16:13:25","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":18354,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-12-06 16:13:25","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":30828,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-12-06 16:42:30","func_code":"def reverse(a):\n import sys\n a = sys.stdin.readlines()\n i = 0\n b = []\n while i < len(a):\n f = a[len(a) - i - 1]\n i = i + 1\n b.append(f.rstrip())\n print(b)\n return a","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":false} {"submission_id":18264,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2016-12-06 16:42:30","func_code":"def reverse(a):\n import sys\n a = sys.stdin.readlines()\n i = 0\n b = []\n while i < len(a):\n f = a[len(a) - i - 1]\n i = i + 1\n b.append(f.rstrip())\n print(b)\n return a","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":false} -{"submission_id":14067,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:42:36","func_code":"def square_area(side):\n x = side * side\n return x","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21368,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def circle_circumference(radius):\n x = 2 * 3.14 * radius\n return x","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23527,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def square_area(side):\n x = side * side\n return x","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37488,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def rectangle_perimeter(l, b):\n x = l * 2 + b * 2\n return x","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41356,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def square_perimeter(side):\n x = side + side + side + side\n return x","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27217,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def circle_area(radius):\n x = 3.14 * (radius * radius)\n return x","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":14067,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:42:36","func_code":"def square_area(side):\n x = side * side\n return x","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":21368,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def circle_circumference(radius):\n x = 2 * 3.14 * radius\n return x","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":23527,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def square_area(side):\n x = side * side\n return x","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37488,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def rectangle_perimeter(l, b):\n x = l * 2 + b * 2\n return x","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41356,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def square_perimeter(side):\n x = side + side + side + side\n return x","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":27217,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 16:52:18","func_code":"def circle_area(radius):\n x = 3.14 * (radius * radius)\n return x","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} {"submission_id":25992,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2016-12-06 17:59:42","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":13890,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:07:36","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":13890,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:07:36","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":38601,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-12-06 18:30:21","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":2959,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37405,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def rectangle_perimeter(l, h):\n return 2 * h + 2 * l","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41201,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33580,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40080,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_perimeter(side):\n return side * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":945,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def rectangle_perimeter(l, h):\n return 2 * h + 2 * l","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3073,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_perimeter(side):\n return side * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24015,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2082,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5280,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":2959,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":false} +{"submission_id":37405,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def rectangle_perimeter(l, h):\n return 2 * h + 2 * l","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41201,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":33580,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":40080,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_perimeter(side):\n return side * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":945,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def rectangle_perimeter(l, h):\n return 2 * h + 2 * l","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":3073,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_perimeter(side):\n return side * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":24015,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2082,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":5280,"user":"0fe97cdd-5534-49d7-8452-aaf0faff48ad","date":"2016-12-06 18:39:49","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":false} {"submission_id":2071,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-12-06 18:46:08","func_code":"def reverse(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[len(a) - 1 - i])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":30736,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-12-06 18:46:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37726,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-12-06 18:46:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":30736,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-12-06 18:46:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":37726,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-12-06 18:46:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":22110,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-12-06 18:47:24","func_code":"def reverse(a):\n i = len(a) - 1\n b = []\n while i >= 0:\n b.append(a[i])\n i -= 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2015,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":31388,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:22:13","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32327,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26759,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1408,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_area(r):\n circ = r * r * 3.14\n return circ","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":90,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_circumference(x):\n circum = 2 * (x * 3.14)\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35198,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def rectangle_perimeter(l, w):\n peri = l + w + l + w\n return peri","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21853,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def rectangle_perimeter(l, w):\n peri = l + w + l + w\n return peri","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":589,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_perimeter(a):\n total = a + a + a + a\n return total","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28861,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_circumference(x):\n circum = 2 * (x * 3.14)\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10402,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_perimeter(a):\n total = a + a + a + a\n return total","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23342,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_area(r):\n circ = r * r * 3.14\n return circ","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33159,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def rectangle_perimeter(side1, side2):\n return side1 * 2 + side2 * 2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24447,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4\n\n\ndef square_area(a):\n return a * a\n\n def square_perimeter(b):\n return b * 4","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20441,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_circumference(radius):\n return 2 * 3.14 * radius","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19662,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4\n\n\ndef square_area(a):\n return a * a\n\n def square_perimeter(b):\n return b * 4","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32200,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16377,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_circumference(radius):\n return 2 * 3.14 * radius","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12967,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def rectangle_perimeter(side1, side2):\n return side1 * 2 + side2 * 2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32689,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_area(radius1):\n return 3.14 * radius1 * radius1","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19004,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5114,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_area(radius1):\n return 3.14 * radius1 * radius1","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2015,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41040,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 10:57:34","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20586,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 11:31:32","func_code":"def circumference(x):\n return 2 * 3.141 * x","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31542,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 11:31:32","func_code":"def area(x):\n return 3.141 * x ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8336,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2016-12-07 12:17:08","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":31388,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:22:13","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":32327,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":26759,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_area(side):\n area = side * side\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":1408,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_area(r):\n circ = r * r * 3.14\n return circ","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":90,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_circumference(x):\n circum = 2 * (x * 3.14)\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":35198,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def rectangle_perimeter(l, w):\n peri = l + w + l + w\n return peri","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":21853,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def rectangle_perimeter(l, w):\n peri = l + w + l + w\n return peri","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":589,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_perimeter(a):\n total = a + a + a + a\n return total","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":28861,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_circumference(x):\n circum = 2 * (x * 3.14)\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":10402,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def square_perimeter(a):\n total = a + a + a + a\n return total","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":23342,"user":"dc8a6a6b-b7c8-4aaf-8447-f5f1b92f7daa","date":"2016-12-06 19:26:58","func_code":"def circle_area(r):\n circ = r * r * 3.14\n return circ","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":33159,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def rectangle_perimeter(side1, side2):\n return side1 * 2 + side2 * 2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":24447,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4\n\n\ndef square_area(a):\n return a * a\n\n def square_perimeter(b):\n return b * 4","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":20441,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_circumference(radius):\n return 2 * 3.14 * radius","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":19662,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4\n\n\ndef square_area(a):\n return a * a\n\n def square_perimeter(b):\n return b * 4","func_name":"square_area","assignment_id":"square_area","academic_year":2015,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":32200,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":16377,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_circumference(radius):\n return 2 * 3.14 * radius","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2015,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":12967,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def rectangle_perimeter(side1, side2):\n return side1 * 2 + side2 * 2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2015,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":32689,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_area(radius1):\n return 3.14 * radius1 * radius1","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":19004,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def square_perimeter(b):\n return b * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2015,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":5114,"user":"b69e2427-8f89-4880-8245-6f14d4d2354a","date":"2016-12-06 21:43:47","func_code":"def circle_area(radius1):\n return 3.14 * radius1 * radius1","func_name":"circle_area","assignment_id":"circle_area","academic_year":2015,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":41040,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 10:57:34","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":20586,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 11:31:32","func_code":"def circumference(x):\n return 2 * 3.141 * x","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":31542,"user":"0f49aa06-8917-4312-903b-8a4431682b21","date":"2016-12-07 11:31:32","func_code":"def area(x):\n return 3.141 * x ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":8336,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2016-12-07 12:17:08","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":23196,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-12-07 18:15:49","func_code":"def swap(a, i, p):\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n\n\ndef findsmall(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = findsmall(a, i)\n swap(a, i, p)\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":35586,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-12-07 18:15:49","func_code":"def swap(a, i, p):\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n\n\ndef findsmall(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = findsmall(a, i)\n swap(a, i, p)\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":38902,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 21:50:49","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39152,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 22:06:13","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39486,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 22:06:13","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":38902,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 21:50:49","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":39152,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 22:06:13","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":39486,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 22:06:13","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":14815,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 23:02:16","func_code":"def reverse(a):\n n = len(a)\n i = 0\n while i < n \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2015,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":18400,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 23:44:51","func_code":"def selection_sort(a):\n i = 0\n n = len(a)\n while i < n:\n p = i\n j = i + 1\n while j < n:\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":24685,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2016-12-07 23:44:51","func_code":"def selection_sort(a):\n i = 0\n n = len(a)\n while i < n:\n p = i\n j = i + 1\n while j < n:\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":501,"user":"d2e09b87-6673-4e12-97a7-4a861a6daa84","date":"2016-12-08 11:17:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15245,"user":"d2e09b87-6673-4e12-97a7-4a861a6daa84","date":"2016-12-08 11:17:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26897,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:28:28","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":501,"user":"d2e09b87-6673-4e12-97a7-4a861a6daa84","date":"2016-12-08 11:17:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15245,"user":"d2e09b87-6673-4e12-97a7-4a861a6daa84","date":"2016-12-08 11:17:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":26897,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:28:28","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":16534,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:38:49","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2015,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":8355,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:46:07","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17769,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:46:07","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41475,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:15:44","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26285,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:15:44","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13522,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:20:57","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":42089,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:20:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2015,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":8355,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:46:07","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":17769,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 11:46:07","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":41475,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:15:44","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":26285,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:15:44","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2015,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13522,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:20:57","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2015,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":42089,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-12-08 13:20:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2015,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":35292,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 13:26:29","func_code":"def selection_sort(a):\n i = 0\n j = 1\n while j < len(a):\n if a[j] < a[i]:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n if i != 0:\n i -= 1\n j -= 1\n else:\n i += 1\n j += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":40998,"user":"3328e1f8-ae85-4d26-8d1c-386e7e2467dc","date":"2016-12-08 13:26:29","func_code":"def selection_sort(a):\n i = 0\n j = 1\n while j < len(a):\n if a[j] < a[i]:\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n if i != 0:\n i -= 1\n j -= 1\n else:\n i += 1\n j += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2015,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":17911,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-12-10 18:24:57","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":40609,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-12-10 18:24:57","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":38706,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-12-11 02:57:01","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":39203,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-12-12 16:38:09","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2015,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":16271,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 06:31:28","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37341,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 09:59:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9741,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 10:34:39","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35461,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 10:34:50","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 10:35:40","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17628,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-10-24 10:37:09","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38501,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 10:37:34","func_code":"def square_area(a):\n return a * a","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2738,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 10:37:58","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34896,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 10:38:47","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3807,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 10:38:53","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29840,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 10:44:31","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35977,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2016-10-24 10:45:49","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18520,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2016-10-24 10:45:49","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24222,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2016-10-24 10:48:17","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18801,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 10:48:57","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15542,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 10:49:33","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22517,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 10:49:34","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33721,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 10:50:13","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18691,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 10:52:05","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11098,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 10:54:28","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14239,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-10-24 11:00:21","func_code":"def square_area(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area\n else:\n return -area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24853,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b\n\n\ndef square_perimeter(n):\n return rectangle_perimeter(n, n)","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30647,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38304,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26295,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34740,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b\n\n\ndef square_perimeter(n):\n return rectangle_perimeter(n, n)","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5785,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9765,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16269,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23880,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12273,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23009,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 13:38:48","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2226,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 14:07:42","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41036,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_circumference(x):\n return 2 * 3.14 * x","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4087,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_area(x):\n return 3.14 * (x * x)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7462,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12343,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31760,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_area(x):\n return 3.14 * (x * x)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38348,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39783,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35567,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def rectangle_perimeter(x, y):\n return x + x + y + y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16346,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def rectangle_perimeter(x, y):\n return x + x + y + y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28561,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_circumference(x):\n return 2 * 3.14 * x","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28871,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":79,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5671,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def rectangle_perimeter(l, h):\n perimeter = l + l + h + h\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20274,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def square_perimeter(j):\n perimeter = j + j + j + j\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1700,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def circle_area(k):\n area = 3.14 * (k * k)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39402,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17309,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28620,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_perimeter(j):\n per = j * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39032,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def rectangle_perimeter(a, b):\n rper = 2 * a + 2 * b\n return rper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28176,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_perimeter(j):\n per = j * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13314,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_area(i):\n area = 3.14 * (i * i)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22227,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4214,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_area(i):\n area = 3.14 * (i * i)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11474,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def rectangle_perimeter(a, b):\n rper = 2 * a + 2 * b\n return rper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":74,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42127,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:13:27","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17590,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def rectangle_perimeter(m, n):\n perimeter = m + m + n + n\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16616,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28519,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_circumference(n):\n circumference = 2 * 3.14 * n\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42125,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_circumference(n):\n circumference = 2 * 3.14 * n\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2062,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def rectangle_perimeter(m, n):\n perimeter = m + m + n + n\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40797,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_area(n):\n area = 3.14 * (n * n)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7003,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_perimeter(n):\n perimeter = n + n + n + n\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36670,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35778,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_perimeter(n):\n perimeter = n + n + n + n\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18214,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_area(n):\n area = 3.14 * (n * n)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39176,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def rectangle_perimeter(n, m):\n ans = n + n + m + m\n return ans","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29093,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_area(n):\n ans = n * n * 3.14\n return ans","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28228,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_area(n):\n ans = n * n * 3.14\n return ans","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25854,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_perimeter(n):\n ans = n + n + n + n\n return ans","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18673,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30535,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_circumference(n):\n ans = 2 * 3.14 * n\n return ans","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37747,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def rectangle_perimeter(n, m):\n ans = n + n + m + m\n return ans","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22755,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_circumference(n):\n ans = 2 * 3.14 * n\n return ans","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14778,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_perimeter(n):\n ans = n + n + n + n\n return ans","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22757,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21819,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2016-10-24 14:15:30","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12323,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2016-10-24 14:15:30","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26213,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25067,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8780,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15209,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28445,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31185,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16244,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7889,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40742,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31670,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25862,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_area(l):\n return 3.14 * (l * l)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9443,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_circumference(t):\n return 2 * 3.14 * t","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11620,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def rectangle_perimeter(s, v):\n return 2 * v + 2 * s","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5278,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_area(l):\n return 3.14 * (l * l)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27150,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_circumference(t):\n return 2 * 3.14 * t","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2188,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27049,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def rectangle_perimeter(s, v):\n return 2 * v + 2 * s","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40027,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10553,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_perimeter(m):\n return m * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24133,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_perimeter(m):\n return m * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23899,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_circumference(b):\n cir = 2 * 3.14 * b\n return cir","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11499,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29607,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_area(r):\n circlearea = r * r\n carea = 3.14 * circlearea\n return carea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35960,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_perimeter(a):\n per = a * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33974,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_area(r):\n circlearea = r * r\n carea = 3.14 * circlearea\n return carea","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38093,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_circumference(b):\n cir = 2 * 3.14 * b\n return cir","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10931,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def rectangle_perimeter(x, y):\n side1 = x * 2\n side2 = y * 2\n rper = side1 + side2\n return rper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":958,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_perimeter(a):\n per = a * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41638,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27624,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def rectangle_perimeter(x, y):\n side1 = x * 2\n side2 = y * 2\n rper = side1 + side2\n return rper","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27363,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_area(r):\n return 3.14 * (r * r)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4434,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_perimeter(l):\n return l + l + l + l","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3288,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19418,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_perimeter(l):\n return l + l + l + l","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4973,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3426,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18637,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11698,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18261,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_area(r):\n return 3.14 * (r * r)","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35641,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4272,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:17:07","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20275,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23457,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_area(side):\n return side * side * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39143,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22556,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_circumference(side):\n return 2 * side * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35948,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_circumference(side):\n return 2 * side * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22672,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37274,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def rectangle_perimeter(side, side2):\n return 2 * side + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4761,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def rectangle_perimeter(side, side2):\n return 2 * side + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2047,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36752,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_area(side):\n return side * side * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2360,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def circle_circumference(a):\n return 2 * 3.14 * a","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9590,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def circle_area(a):\n return a * a * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1424,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11808,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def square_area(a):\n return a * a","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35865,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def square_perimeter(a):\n return a + a + a + a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35453,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11509,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21848,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35681,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12272,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5502,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20471,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2541,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15108,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19383,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26385,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1440,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8769,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1448,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2800,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def square_perimeter(side):\n return side + side + side + side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8556,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17610,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2985,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4014,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21033,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def rectangle_perimeter(n, side2):\n return 2 * n + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22446,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def rectangle_perimeter(n, side2):\n return 2 * n + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20988,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5862,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9023,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16736,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40444,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def rectangle_perimeter(n, m):\n return n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31792,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6262,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16531,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26968,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28141,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def rectangle_perimeter(n, m):\n return n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36776,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11584,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11957,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34826,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19879,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33696,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26744,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42060,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2368,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37570,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39849,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_perimeter(a):\n a = a * 4\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14689,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_perimeter(a):\n a = a * 4\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13858,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32516,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9801,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 14:39:59","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14022,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16807,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31586,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13312,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33731,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34834,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40602,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16952,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12645,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34463,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16159,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:44:08","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35467,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_area(m):\n return m * m","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4298,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_perimeter(l):\n return 4 * l","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18023,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_perimeter(l):\n return 4 * l","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24102,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def rectangle_perimeter(c):\n return (c + c) * 2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7975,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_area(a):\n return 3.14 * a ** 2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17247,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def rectangle_perimeter(c):\n return (c + c) * 2","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":287,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_circumference(b):\n return 2 * 3.14 * b","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28737,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_area(m):\n return m * m","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22807,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_circumference(b):\n return 2 * 3.14 * b","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13646,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_area(a):\n return 3.14 * a ** 2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4153,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2016-10-24 14:47:19","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32919,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2016-10-24 14:47:19","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3002,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20239,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4389,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16730,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38162,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27408,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40643,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9494,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29266,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41504,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16748,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32358,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39238,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16834,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12723,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37807,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28466,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17213,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def rectangle_perimeter(l, w):\n l = l + l\n w = w + w\n return l + w","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40552,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25518,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def rectangle_perimeter(l, w):\n l = l + l\n w = w + w\n return l + w","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":3224,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_perimeter(q):\n return q * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28930,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27607,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def rectangle_perimeter(l, w):\n return 2 * l + 2 * w","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16262,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def rectangle_perimeter(l, w):\n return 2 * l + 2 * w","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38072,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23427,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16796,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_perimeter(q):\n return q * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24426,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15786,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_circumference(s):\n return 2 * 3.14 * s","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28717,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_circumference(s):\n return 2 * 3.14 * s","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30432,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_area(radius):\n area = 3.14 * (radius * radius)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2855,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24215,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_perimeter(side):\n per = side * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26125,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_perimeter(side):\n per = side * 4\n return per","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12680,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2525,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16512,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_area(radius):\n area = 3.14 * (radius * radius)\n return area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22817,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2698,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def rectangle_perimeter(length, width):\n rp = 2 * (length + width)\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13078,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def rectangle_perimeter(length, width):\n rp = 2 * (length + width)\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32507,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14444,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33401,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38349,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14700,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21143,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2016-11-21 14:21:23","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31169,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:40:27","func_code":"def square_area(r):\n return r * r","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20247,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15434,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def circle_circumference(r):\n return 2 * r * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5504,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6655,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def square_area(r):\n return r * r","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35515,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def square_perimeter(r):\n return 4 * r","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":16271,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 06:31:28","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37341,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 09:59:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":9741,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 10:34:39","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35461,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 10:34:50","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":10,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 10:35:40","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":17628,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2016-10-24 10:37:09","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":38501,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 10:37:34","func_code":"def square_area(a):\n return a * a","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2738,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 10:37:58","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":34896,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 10:38:47","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":3807,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 10:38:53","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29840,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 10:44:31","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35977,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2016-10-24 10:45:49","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":18520,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2016-10-24 10:45:49","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":24222,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2016-10-24 10:48:17","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":18801,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 10:48:57","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15542,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 10:49:33","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22517,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 10:49:34","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":33721,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 10:50:13","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":18691,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 10:52:05","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11098,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 10:54:28","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":14239,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2016-10-24 11:00:21","func_code":"def square_area(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area\n else:\n return -area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} +{"submission_id":24853,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b\n\n\ndef square_perimeter(n):\n return rectangle_perimeter(n, n)","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":30647,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":38304,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":26295,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":34740,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b\n\n\ndef square_perimeter(n):\n return rectangle_perimeter(n, n)","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":5785,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def rectangle_perimeter(a, b):\n return 2 * a + 2 * b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":9765,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":false} +{"submission_id":16269,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_circumference(r):\n return 2 * pi * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":false} +{"submission_id":23880,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":12273,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-10-24 12:08:06","func_code":"def circle_area(r):\n return pi * r * r","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":23009,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 13:38:48","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2226,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 14:07:42","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":41036,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_circumference(x):\n return 2 * 3.14 * x","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":4087,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_area(x):\n return 3.14 * (x * x)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":7462,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":12343,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31760,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_area(x):\n return 3.14 * (x * x)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":38348,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_area(x):\n return x * x","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":39783,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":35567,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def rectangle_perimeter(x, y):\n return x + x + y + y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":16346,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def rectangle_perimeter(x, y):\n return x + x + y + y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":28561,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2016-10-24 14:09:31","func_code":"def circle_circumference(x):\n return 2 * 3.14 * x","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":28871,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":79,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":5671,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def rectangle_perimeter(l, h):\n perimeter = l + l + h + h\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":20274,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def square_perimeter(j):\n perimeter = j + j + j + j\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":1700,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2016-10-24 14:10:43","func_code":"def circle_area(k):\n area = 3.14 * (k * k)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":39402,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":17309,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":28620,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_perimeter(j):\n per = j * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":39032,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def rectangle_perimeter(a, b):\n rper = 2 * a + 2 * b\n return rper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":28176,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_perimeter(j):\n per = j * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":13314,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_area(i):\n area = 3.14 * (i * i)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":22227,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_circumference(m):\n circumference = 2 * 3.14 * m\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":4214,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def circle_area(i):\n area = 3.14 * (i * i)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":11474,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def rectangle_perimeter(a, b):\n rper = 2 * a + 2 * b\n return rper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":74,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2016-10-24 14:13:22","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":42127,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:13:27","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":17590,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def rectangle_perimeter(m, n):\n perimeter = m + m + n + n\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":16616,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":28519,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_circumference(n):\n circumference = 2 * 3.14 * n\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":42125,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_circumference(n):\n circumference = 2 * 3.14 * n\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2062,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def rectangle_perimeter(m, n):\n perimeter = m + m + n + n\n return perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":40797,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_area(n):\n area = 3.14 * (n * n)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":7003,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_perimeter(n):\n perimeter = n + n + n + n\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":36670,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_area(n):\n side = n * n\n return side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35778,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def square_perimeter(n):\n perimeter = n + n + n + n\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18214,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2016-10-24 14:13:37","func_code":"def circle_area(n):\n area = 3.14 * (n * n)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":39176,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def rectangle_perimeter(n, m):\n ans = n + n + m + m\n return ans","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":29093,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_area(n):\n ans = n * n * 3.14\n return ans","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":28228,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_area(n):\n ans = n * n * 3.14\n return ans","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":25854,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_perimeter(n):\n ans = n + n + n + n\n return ans","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18673,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":30535,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_circumference(n):\n ans = 2 * 3.14 * n\n return ans","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":37747,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def rectangle_perimeter(n, m):\n ans = n + n + m + m\n return ans","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":22755,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def circle_circumference(n):\n ans = 2 * 3.14 * n\n return ans","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":14778,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_perimeter(n):\n ans = n + n + n + n\n return ans","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":22757,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2016-10-24 14:14:37","func_code":"def square_area(n):\n ans = n * n\n return ans","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":21819,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2016-10-24 14:15:30","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":12323,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2016-10-24 14:15:30","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":26213,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":25067,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":8780,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15209,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":28445,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":31185,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":16244,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":7889,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":40742,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31670,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2016-10-24 14:15:39","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":25862,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_area(l):\n return 3.14 * (l * l)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":9443,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_circumference(t):\n return 2 * 3.14 * t","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":11620,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def rectangle_perimeter(s, v):\n return 2 * v + 2 * s","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":5278,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_area(l):\n return 3.14 * (l * l)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":27150,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def circle_circumference(t):\n return 2 * 3.14 * t","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2188,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27049,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def rectangle_perimeter(s, v):\n return 2 * v + 2 * s","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":40027,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":10553,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_perimeter(m):\n return m * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":24133,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2016-10-24 14:15:52","func_code":"def square_perimeter(m):\n return m * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":23899,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_circumference(b):\n cir = 2 * 3.14 * b\n return cir","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":11499,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29607,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_area(r):\n circlearea = r * r\n carea = 3.14 * circlearea\n return carea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":35960,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_perimeter(a):\n per = a * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":33974,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_area(r):\n circlearea = r * r\n carea = 3.14 * circlearea\n return carea","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":38093,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def circle_circumference(b):\n cir = 2 * 3.14 * b\n return cir","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":10931,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def rectangle_perimeter(x, y):\n side1 = x * 2\n side2 = y * 2\n rper = side1 + side2\n return rper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":958,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_perimeter(a):\n per = a * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":41638,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def square_area(n):\n area = n * n\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27624,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2016-10-24 14:16:34","func_code":"def rectangle_perimeter(x, y):\n side1 = x * 2\n side2 = y * 2\n rper = side1 + side2\n return rper","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":27363,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_area(r):\n return 3.14 * (r * r)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4434,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_perimeter(l):\n return l + l + l + l","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":3288,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":19418,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_perimeter(l):\n return l + l + l + l","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4973,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":3426,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":18637,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":11698,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":18261,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def circle_area(r):\n return 3.14 * (r * r)","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":35641,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2016-10-24 14:16:58","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":4272,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:17:07","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":20275,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":23457,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_area(side):\n return side * side * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":39143,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":22556,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_circumference(side):\n return 2 * side * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":35948,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_circumference(side):\n return 2 * side * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":22672,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37274,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def rectangle_perimeter(side, side2):\n return 2 * side + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":4761,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def rectangle_perimeter(side, side2):\n return 2 * side + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":2047,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":36752,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2016-10-24 14:18:51","func_code":"def circle_area(side):\n return side * side * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2360,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def circle_circumference(a):\n return 2 * 3.14 * a","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":9590,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def circle_area(a):\n return a * a * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":1424,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":11808,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def square_area(a):\n return a * a","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35865,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2016-10-24 14:20:12","func_code":"def square_perimeter(a):\n return a + a + a + a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":35453,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11509,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":21848,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":35681,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":12272,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_circumference(n):\n return n * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":5502,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":20471,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2541,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15108,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":19383,"user":"72504244-3803-4754-91e3-5c7732106556","date":"2016-10-24 14:20:33","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":26385,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":1440,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":8769,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def rectangle_perimeter(a, b):\n return a + a + b + b","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":1448,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2800,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2016-10-24 14:25:57","func_code":"def square_perimeter(side):\n return side + side + side + side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":8556,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":17610,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2985,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4014,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":21033,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def rectangle_perimeter(n, side2):\n return 2 * n + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":22446,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def rectangle_perimeter(n, side2):\n return 2 * n + 2 * side2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":20988,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":5862,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":9023,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def square_perimeter(n):\n return n * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":16736,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2016-10-24 14:26:04","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":40444,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def rectangle_perimeter(n, m):\n return n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":31792,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":6262,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16531,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":26968,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":28141,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def rectangle_perimeter(n, m):\n return n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":36776,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_circumference(n):\n return 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":11584,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_area(n):\n return n * n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11957,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def square_perimeter(n):\n return n + n + n + n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":34826,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2016-10-24 14:29:37","func_code":"def circle_area(n):\n return n * n * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":19879,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":33696,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":26744,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":42060,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2368,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37570,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":39849,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_perimeter(a):\n a = a * 4\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":14689,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_perimeter(a):\n a = a * 4\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":13858,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":32516,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2016-10-24 14:34:17","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":9801,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 14:39:59","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":14022,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16807,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31586,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":13312,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":33731,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":34834,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":40602,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":16952,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":12645,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":34463,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-24 14:42:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":16159,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:44:08","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35467,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_area(m):\n return m * m","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":4298,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_perimeter(l):\n return 4 * l","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18023,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_perimeter(l):\n return 4 * l","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":24102,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def rectangle_perimeter(c):\n return (c + c) * 2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":7975,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_area(a):\n return 3.14 * a ** 2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":17247,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def rectangle_perimeter(c):\n return (c + c) * 2","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":287,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_circumference(b):\n return 2 * 3.14 * b","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":28737,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def square_area(m):\n return m * m","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22807,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_circumference(b):\n return 2 * 3.14 * b","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":13646,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2016-10-24 14:47:17","func_code":"def circle_area(a):\n return 3.14 * a ** 2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4153,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2016-10-24 14:47:19","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":32919,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2016-10-24 14:47:19","func_code":"def square_area(l):\n return l * l","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":3002,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":20239,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":4389,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":16730,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":38162,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":27408,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":40643,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":9494,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":29266,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def rectangle_perimeter(d, e):\n d = d + d\n e = e + e\n return d + e","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41504,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2016-10-24 14:57:00","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16748,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":32358,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":39238,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":16834,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_circumference(c):\n c = 2 * 3.14 * c\n return c","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":12723,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def circle_area(b):\n b = b * b * 3.14\n return b","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":37807,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":28466,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_perimeter(a):\n a = 4 * a\n return a","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":17213,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def rectangle_perimeter(l, w):\n l = l + l\n w = w + w\n return l + w","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":40552,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def square_area(n):\n n = n * n\n return n","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":25518,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2016-10-24 15:01:33","func_code":"def rectangle_perimeter(l, w):\n l = l + l\n w = w + w\n return l + w","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":3224,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_perimeter(q):\n return q * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":28930,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":27607,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def rectangle_perimeter(l, w):\n return 2 * l + 2 * w","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":16262,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def rectangle_perimeter(l, w):\n return 2 * l + 2 * w","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":38072,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":23427,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16796,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def square_perimeter(q):\n return q * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":24426,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":15786,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_circumference(s):\n return 2 * 3.14 * s","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":28717,"user":"52d6165d-a6ff-4d05-9d24-6b0105a2b16c","date":"2016-10-24 15:23:39","func_code":"def circle_circumference(s):\n return 2 * 3.14 * s","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":30432,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_area(radius):\n area = 3.14 * (radius * radius)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2855,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":24215,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_perimeter(side):\n per = side * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":26125,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_perimeter(side):\n per = side * 4\n return per","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":12680,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2525,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_circumference(radius):\n circumference = 2 * 3.14 * radius\n return circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":16512,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def circle_area(radius):\n area = 3.14 * (radius * radius)\n return area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":22817,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2698,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def rectangle_perimeter(length, width):\n rp = 2 * (length + width)\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":13078,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2016-10-24 19:37:41","func_code":"def rectangle_perimeter(length, width):\n rp = 2 * (length + width)\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":32507,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":14444,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":33401,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":38349,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":14700,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2016-10-25 17:39:00","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":21143,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2016-11-21 14:21:23","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":31169,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:40:27","func_code":"def square_area(r):\n return r * r","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":20247,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":15434,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def circle_circumference(r):\n return 2 * r * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":5504,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":6655,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def square_area(r):\n return r * r","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35515,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 13:52:15","func_code":"def square_perimeter(r):\n return 4 * r","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":4274,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2016-11-27 21:04:49","func_code":"def reverse(test):\n b = []\n i = 0\n while i < len(test):\n b.append(test[len(test) - 1 - i])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":16458,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:21:42","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32531,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:35:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":11055,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:35:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":16458,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:21:42","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":32531,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:35:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":11055,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:35:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":26006,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 12:59:22","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n t = a[i]\n a[i] = a[j]\n a[j] = t\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":34701,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 13:08:25","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":13209,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2016-11-29 13:08:25","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":2550,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:02:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8611,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 14:02:50","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24217,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:02:58","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32360,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:03:35","func_code":"def double(n):\n return n + n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15578,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:04:39","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18311,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:04:41","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6420,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:04:42","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36018,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:04:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1788,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38787,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:05:36","func_code":"def double(n):\n return n + n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":196,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:05:54","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16568,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:06:15","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15114,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:06:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17530,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:06:44","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36220,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:06:44","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26644,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:06:54","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3827,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:07:22","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1012,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:07:22","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32009,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:07:24","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38919,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:07:48","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36802,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:08:25","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31379,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:08:25","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18309,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:08:37","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15092,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:08:37","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39058,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:08:46","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27478,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:09:29","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25611,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:09:37","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":42230,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:09:59","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21843,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:10:00","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25778,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:10:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27841,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:10:11","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21898,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:10:15","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25298,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:10:15","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":42130,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:10:33","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15687,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:10:33","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26115,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:10:40","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38409,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:10:40","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12534,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:11:04","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24065,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:11:05","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25739,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:11:18","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27296,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:11:32","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13512,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 14:11:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35272,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 14:11:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28690,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:11:40","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3188,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:11:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4858,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:11:47","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13143,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:12:08","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27333,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:12:20","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25583,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:12:20","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38281,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:12:25","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":29232,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:12:27","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8192,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:12:28","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39955,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:12:28","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39220,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:12:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25504,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:13:07","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1211,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:13:07","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4430,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:13:20","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38312,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:13:22","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41569,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:13:30","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4108,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:13:31","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28130,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:13:31","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17248,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:13:55","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26874,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:13:55","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3848,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:14:14","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":33355,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:14:22","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30685,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:14:27","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":2621,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:14:37","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15085,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:14:50","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23895,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:14:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8206,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:14:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38795,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:15:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6713,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:15:11","func_code":"def area(r):\n a = pi * r * r\n return a","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13261,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:15:11","func_code":"def circumference(r):\n c = 2 * pi * r\n return c","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3430,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:15:28","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37355,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:15:37","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39734,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:15:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13785,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:16:10","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15923,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:16:10","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39689,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:16:11","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38203,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:16:11","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4155,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:17:12","func_code":"def circumference(r):\n return 2 * PI * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35987,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:17:12","func_code":"def area(r):\n return PI * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":2550,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:02:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":8611,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 14:02:50","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":24217,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:02:58","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":32360,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:03:35","func_code":"def double(n):\n return n + n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15578,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:04:39","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":18311,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:04:41","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":6420,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:04:42","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":36018,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:04:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":1788,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":38787,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:05:36","func_code":"def double(n):\n return n + n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":196,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:05:54","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":16568,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:06:15","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15114,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:06:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":17530,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:06:44","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":36220,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:06:44","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":26644,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:06:54","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":3827,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:07:22","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":1012,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 14:07:22","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":32009,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:07:24","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":38919,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:07:48","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":36802,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:08:25","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":31379,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:08:25","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":18309,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:08:37","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":15092,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2016-11-29 14:08:37","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39058,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:08:46","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":27478,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:09:29","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":25611,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:09:37","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":42230,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:09:59","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":21843,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:10:00","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":25778,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:10:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":27841,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:10:11","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":21898,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:10:15","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":25298,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:10:15","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":42130,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:10:33","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":15687,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:10:33","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":26115,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:10:40","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":38409,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:10:40","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":12534,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:11:04","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":24065,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:11:05","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":25739,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:11:18","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":27296,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:11:32","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13512,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 14:11:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":35272,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 14:11:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":28690,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:11:40","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":3188,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:11:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":4858,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:11:47","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13143,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:12:08","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":27333,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:12:20","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":25583,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:12:20","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":38281,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:12:25","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":29232,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:12:27","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":8192,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:12:28","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":39955,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:12:28","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39220,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:12:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":25504,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:13:07","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":1211,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:13:07","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4430,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:13:20","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":38312,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:13:22","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":41569,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:13:30","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":4108,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:13:31","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":28130,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:13:31","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":17248,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:13:55","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":26874,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:13:55","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":3848,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:14:14","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":33355,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:14:22","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":30685,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:14:27","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":2621,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:14:37","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15085,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:14:50","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":23895,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:14:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":8206,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:14:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":38795,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:15:04","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":6713,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:15:11","func_code":"def area(r):\n a = pi * r * r\n return a","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":13261,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:15:11","func_code":"def circumference(r):\n c = 2 * pi * r\n return c","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":3430,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:15:28","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37355,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:15:37","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":39734,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:15:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":13785,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:16:10","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":15923,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:16:10","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39689,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:16:11","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":38203,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:16:11","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4155,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:17:12","func_code":"def circumference(r):\n return 2 * PI * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":35987,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:17:12","func_code":"def area(r):\n return PI * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":18050,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:17:15","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n for i in range(len(a) \/ 2):\n swap(a, i, len(a) - i - 1)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":30294,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:17:17","func_code":"def circumference(r):\n return 2 * r * pi","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24598,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:17:17","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23647,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:17:18","func_code":"def area(x):\n y = pi * x * x\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":34785,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:17:18","func_code":"def circumference(x):\n y = 2 * pi * x\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39460,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:17:20","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13205,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:17:47","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32474,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:17:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21783,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:17:48","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":34816,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:17:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":753,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:17:57","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9539,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2016-11-29 14:18:32","func_code":"def double(x):\n return x + x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26224,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:18:42","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41420,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:18:42","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16337,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:18:42","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39256,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2016-11-29 14:18:44","func_code":"def area(r):\n a = pi * r * r\n return a","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12423,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:18:55","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3051,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:18:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4967,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:18:57","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19157,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:18:57","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":29671,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:19:08","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6673,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2016-11-29 14:19:10","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15717,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:19:13","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9927,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:19:13","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38950,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:19:34","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19860,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:19:34","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36183,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2016-11-29 14:20:00","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4031,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:20:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30860,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:20:19","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35383,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:20:19","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":11652,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:20:20","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17536,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:20:20","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21352,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:20:32","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4440,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:20:32","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20016,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:20:36","func_code":"def area(n):\n return pi * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22791,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:20:36","func_code":"def circumference(n):\n return 2 * pi * n","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19059,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:20:37","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16804,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:20:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41710,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:20:39","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17345,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:20:42","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36768,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:20:43","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38987,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:20:43","func_code":"def circumference(r):\n return pi * r * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3029,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:21:01","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20637,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:21:01","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20188,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:21:03","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":14782,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:21:03","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8212,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:21:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8863,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:21:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27751,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:21:55","func_code":"def area(r):\n y = 3.141 * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31090,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:21:55","func_code":"def circumference(r):\n y = 2 * 3.141 * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":30294,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:17:17","func_code":"def circumference(r):\n return 2 * r * pi","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":24598,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2016-11-29 14:17:17","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":23647,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:17:18","func_code":"def area(x):\n y = pi * x * x\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":34785,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:17:18","func_code":"def circumference(x):\n y = 2 * pi * x\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39460,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:17:20","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13205,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:17:47","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":32474,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:17:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":21783,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:17:48","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":34816,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:17:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":753,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:17:57","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":9539,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2016-11-29 14:18:32","func_code":"def double(x):\n return x + x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":26224,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:18:42","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":41420,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:18:42","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":16337,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:18:42","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39256,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2016-11-29 14:18:44","func_code":"def area(r):\n a = pi * r * r\n return a","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":12423,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:18:55","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":3051,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:18:57","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":4967,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2016-11-29 14:18:57","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":19157,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:18:57","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":29671,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:19:08","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":6673,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2016-11-29 14:19:10","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15717,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:19:13","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":9927,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:19:13","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":38950,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:19:34","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":19860,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:19:34","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":36183,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2016-11-29 14:20:00","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":4031,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:20:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":30860,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:20:19","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":35383,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:20:19","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":11652,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:20:20","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":17536,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:20:20","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":21352,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:20:32","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":4440,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:20:32","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":20016,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:20:36","func_code":"def area(n):\n return pi * n ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":22791,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:20:36","func_code":"def circumference(n):\n return 2 * pi * n","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":19059,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:20:37","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":16804,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:20:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":41710,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:20:39","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":17345,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:20:42","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":36768,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:20:43","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":38987,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:20:43","func_code":"def circumference(r):\n return pi * r * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":3029,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:21:01","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":20637,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:21:01","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":20188,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:21:03","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":14782,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2016-11-29 14:21:03","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":8212,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:21:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":8863,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:21:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":27751,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:21:55","func_code":"def area(r):\n y = 3.141 * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":31090,"user":"f69c7616-4d20-4dbe-b3f8-0d10db7adfe4","date":"2016-11-29 14:21:55","func_code":"def circumference(r):\n y = 2 * 3.141 * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":7342,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:21:57","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":34067,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:22:17","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":33143,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2016-11-29 14:22:36","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3980,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:22:39","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12316,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:22:39","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":34067,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:22:17","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":33143,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2016-11-29 14:22:36","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":3980,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:22:39","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":12316,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:22:39","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":13138,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:22:47","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":35248,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:22:50","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":229,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:22:58","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38887,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:23:04","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9313,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:23:41","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8897,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:23:41","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19832,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:23:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":34974,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:23:48","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36036,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:23:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21235,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:23:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37179,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:23:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13506,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:24:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7354,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:24:09","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6447,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:24:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28388,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:24:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20302,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-11-29 14:24:39","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22717,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:24:59","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41904,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:25:05","func_code":"def area(r):\n r * r * pi","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4482,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:25:05","func_code":"def circumference(r):\n return r * 2 * pi","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":2050,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:25:25","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6888,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:25:32","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37548,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:25:32","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7650,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:25:40","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1908,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:25:40","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35878,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:25:57","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28803,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:25:57","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7395,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:25:59","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":5614,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:26:18","func_code":"def circumference(r):\n y = 2 * 3.141 * int(r)\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41354,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:26:18","func_code":"def area(r):\n y = 3.141 * int(r) ** 2\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39851,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2016-11-29 14:26:27","func_code":"def circumference(r):\n return r * 2 * 3.141","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":35248,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:22:50","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":229,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:22:58","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":38887,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:23:04","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":9313,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:23:41","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":8897,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:23:41","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":19832,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:23:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":34974,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:23:48","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":36036,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2016-11-29 14:23:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":21235,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:23:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37179,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:23:57","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13506,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:24:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":7354,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:24:09","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":6447,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:24:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":28388,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:24:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":20302,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-11-29 14:24:39","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":22717,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:24:59","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":41904,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:25:05","func_code":"def area(r):\n r * r * pi","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4482,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:25:05","func_code":"def circumference(r):\n return r * 2 * pi","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":2050,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:25:25","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":6888,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:25:32","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":37548,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2016-11-29 14:25:32","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":7650,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:25:40","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":1908,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2016-11-29 14:25:40","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":35878,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:25:57","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":28803,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:25:57","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":7395,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:25:59","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":5614,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:26:18","func_code":"def circumference(r):\n y = 2 * 3.141 * int(r)\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":41354,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2016-11-29 14:26:18","func_code":"def area(r):\n y = 3.141 * int(r) ** 2\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":39851,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2016-11-29 14:26:27","func_code":"def circumference(r):\n return r * 2 * 3.141","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":14160,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:26:33","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":15046,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-29 14:27:09","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - 1 - i\n swap(a, i, j)\n i += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":33571,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2016-11-29 14:27:15","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[p] >= a[j]:\n p = j\n j += 1\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} @@ -682,100 +682,100 @@ {"submission_id":26032,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2016-11-29 14:27:28","func_code":"def find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":23933,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:28:02","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":34429,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2016-11-29 14:28:15","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":36934,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:28:40","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15530,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:28:40","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":36934,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:28:40","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":15530,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2016-11-29 14:28:40","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":31444,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2016-11-29 14:28:54","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":39763,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:04","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":39763,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:04","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":28962,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:29:13","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n for i in range(0, len(a) \/ 2):\n swap(a, i, len(a) - i - 1)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":12592,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:29:20","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19592,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:29:20","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35303,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:52","func_code":"def area(r):\n return pi * (r * r)","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18282,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:52","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":673,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:29:55","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21240,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:29:55","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36352,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:30:05","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41860,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:30:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":12592,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:29:20","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":19592,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 14:29:20","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":35303,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:52","func_code":"def area(r):\n return pi * (r * r)","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":18282,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2016-11-29 14:29:52","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":673,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:29:55","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":21240,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:29:55","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":36352,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:30:05","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":41860,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 14:30:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":11591,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:30:09","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":22199,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2016-11-29 14:30:57","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":2664,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:30:59","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":2664,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:30:59","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":26843,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2016-11-29 14:30:59","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":7307,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:31:11","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":12897,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:31:29","func_code":"def area(n):\n return pi * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":104,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:31:29","func_code":"def circumference(n):\n return pi * n * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":10067,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:31:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":12897,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:31:29","func_code":"def area(n):\n return pi * n ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":104,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:31:29","func_code":"def circumference(n):\n return pi * n * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":10067,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:31:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":25710,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:31:45","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n for i in range(len(a)):\n smallest = i\n for j in range(i, len(a)):\n if a[j] < a[smallest]:\n smallest = j\n swap(a, i, smallest)\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":28107,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2016-11-29 14:31:45","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n for i in range(len(a)):\n smallest = i\n for j in range(i, len(a)):\n if a[j] < a[smallest]:\n smallest = j\n swap(a, i, smallest)\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":21280,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:31:48","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36985,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:31:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35221,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:31:56","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":84,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:31:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":21280,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:31:48","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":36985,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2016-11-29 14:31:48","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":35221,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:31:56","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":84,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2016-11-29 14:31:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":18922,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2016-11-29 14:32:15","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":19907,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:32:18","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":19907,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:32:18","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":10091,"user":"2c7a8a81-53ed-42cc-bd4e-e268d1d767be","date":"2016-11-29 14:32:44","func_code":"def swap(a, x, y):\n tmp = a[x]\n a[x] = a[y]\n a[y] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":11140,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:32:45","func_code":"def double(n):\n y = 2 * n\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":11140,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:32:45","func_code":"def double(n):\n y = 2 * n\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":15632,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2016-11-29 14:33:06","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":29120,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2016-11-29 14:33:06","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 += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":27424,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:33:26","func_code":"def double(n):\n double_val = n * 2\n return double_val","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37256,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:33:36","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37819,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:33:36","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":27424,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:33:26","func_code":"def double(n):\n double_val = n * 2\n return double_val","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37256,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:33:36","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37819,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:33:36","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":37584,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:33:37","func_code":"def selection_sort(a):\n return a.sort()","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":39681,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2016-11-29 14:33:37","func_code":"def selection_sort(a):\n return a.sort()","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":37848,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:33:51","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15389,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:33:51","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":37848,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:33:51","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":15389,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:33:51","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":6636,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:34:00","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 += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":18897,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:01","func_code":"def area(r):\n return 3.141 * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23479,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:34:01","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41281,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:34:01","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21163,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:01","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":18897,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:01","func_code":"def area(r):\n return 3.141 * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":23479,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:34:01","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":41281,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2016-11-29 14:34:01","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":21163,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:01","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":4120,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:34:29","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":27832,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":10761,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":5270,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2016-11-29 14:34:44","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31258,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2016-11-29 14:34:44","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21334,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2016-11-29 14:35:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39768,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2016-11-29 14:35:05","func_code":"def area(r):\n return pi * (r * r)","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":27832,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":10761,"user":"3a86cbea-7925-4e8e-9baa-3505dd2219c7","date":"2016-11-29 14:34:31","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":5270,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2016-11-29 14:34:44","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":31258,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2016-11-29 14:34:44","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":21334,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2016-11-29 14:35:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":39768,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2016-11-29 14:35:05","func_code":"def area(r):\n return pi * (r * r)","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":32626,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:35:11","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":19250,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 14:35:13","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":38767,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2016-11-29 14:35:48","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":3907,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:35:59","func_code":"def find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":18263,"user":"dc42d7ae-53d0-4b49-988b-c619edf38a77","date":"2016-11-29 14:35:59","func_code":"def find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":3637,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2016-11-29 14:36:01","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":12724,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:36:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18541,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:36:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23779,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:36:45","func_code":"def area(r):\n ans = pi * r ** 2\n return ans","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12555,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:36:45","func_code":"def circumference(r):\n ans = 2 * pi * r\n return ans","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18380,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:37:07","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16504,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:37:07","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":12724,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:36:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":18541,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:36:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":23779,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:36:45","func_code":"def area(r):\n ans = pi * r ** 2\n return ans","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":12555,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2016-11-29 14:36:45","func_code":"def circumference(r):\n ans = 2 * pi * r\n return ans","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":18380,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:37:07","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":16504,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2016-11-29 14:37:07","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":26583,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:37:31","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":3085,"user":"54b87e3d-5711-4a83-a6d1-ed14ae588835","date":"2016-11-29 14:37:31","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":14083,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:37:40","func_code":"def double(n):\n m = n * 2\n return m","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24145,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:38:03","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31002,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:38:03","func_code":"def area(r):\n y = pi * r ** 2\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37024,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:38:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":42157,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:38:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":14083,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:37:40","func_code":"def double(n):\n m = n * 2\n return m","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":24145,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:38:03","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":31002,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 14:38:03","func_code":"def area(r):\n y = pi * r ** 2\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":37024,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:38:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":42157,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 14:38:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":12622,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 14:38:30","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 b = 0\n while b < len(a) \/ 2:\n swap(a, b, len(a) - b - 1)\n b += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":37498,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:38:33","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":35423,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:38:34","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3720,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:38:34","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":35423,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:38:34","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":3720,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 14:38:34","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":24752,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 14:38:52","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":30321,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2016-11-29 14:39:00","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":26927,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:39:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17041,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:39:37","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":26927,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:39:37","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":17041,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2016-11-29 14:39:37","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":41493,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2016-11-29 14:39:48","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n k = 0\n while k < len(a) \/ 2:\n swap(a, k, len(a) - k - 1)\n k += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":27057,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2016-11-29 14:39:59","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":10361,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 14:40:17","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":35463,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:40:18","func_code":"def circumference(c):\n return 2 * 3.141 * c","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8671,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:40:18","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":35463,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:40:18","func_code":"def circumference(c):\n return 2 * 3.141 * c","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":8671,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 14:40:18","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":35946,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:40:49","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":5588,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2016-11-29 14:40:49","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":9201,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:40:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13616,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:40:54","func_code":"def area(x):\n return pi * x ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":9201,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:40:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":13616,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 14:40:54","func_code":"def area(x):\n return pi * x ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":40635,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:41:19","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":36406,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2016-11-29 14:41:19","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":1499,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:41:43","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28065,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:41:43","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35554,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:42:25","func_code":"def area(r):\n actual_area = 3.141 * r ** 2\n return actual_area","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30672,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:42:25","func_code":"def circumference(r):\n actual_circumference = 2 * 3.141 * r\n return actual_circumference","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":1499,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:41:43","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":28065,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2016-11-29 14:41:43","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":35554,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:42:25","func_code":"def area(r):\n actual_area = 3.141 * r ** 2\n return actual_area","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":30672,"user":"ccb230ef-8610-4130-8882-d0643817d9b4","date":"2016-11-29 14:42:25","func_code":"def circumference(r):\n actual_circumference = 2 * 3.141 * r\n return actual_circumference","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":24099,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:42:34","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":2589,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2016-11-29 14:42:49","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 += 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":27492,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2016-11-29 14:43:02","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -797,15 +797,15 @@ {"submission_id":32966,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2016-11-29 14:46:02","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":9756,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:46:07","func_code":"def find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":7021,"user":"fa2c47e6-9c25-4040-9985-e5ab62711be6","date":"2016-11-29 14:46:07","func_code":"def find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":26282,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:46:11","func_code":"def area(a):\n x = 3.141 * a ** 2\n return x","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30264,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:46:11","func_code":"def circumference(r):\n y = 3.141 * 2 * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":26282,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:46:11","func_code":"def area(a):\n x = 3.141 * a ** 2\n return x","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":30264,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 14:46:11","func_code":"def circumference(r):\n y = 3.141 * 2 * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} {"submission_id":38244,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:46:18","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":3695,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:46:39","func_code":"def selection_sort(a):\n for i in range(0, len(a)):\n p = i\n curr_low = p\n while p < len(a):\n if a[p] < a[curr_low]:\n curr_low = p\n p += 1\n tmp = a[i]\n a[i] = a[curr_low]\n a[curr_low] = tmp","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":10833,"user":"5cf0f5b5-a91e-4c33-8ac1-92aa868cd3b0","date":"2016-11-29 14:46:39","func_code":"def selection_sort(a):\n for i in range(0, len(a)):\n p = i\n curr_low = p\n while p < len(a):\n if a[p] < a[curr_low]:\n curr_low = p\n p += 1\n tmp = a[i]\n a[i] = a[curr_low]\n a[curr_low] = tmp","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":15574,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2016-11-29 14:47:16","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":42010,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:47:22","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - i - 1]\n a[len(a) - i - 1] = tmp\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":29284,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:47:23","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":29404,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:47:23","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":29284,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:47:23","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":29404,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:47:23","func_code":"def double(x):\n return x * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":23084,"user":"573bd795-e55d-4f35-83cb-b4c309fb0d57","date":"2016-11-29 14:47:51","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":30811,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:48:29","func_code":"def selection_sort(a):\n p = 0\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":32508,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2016-11-29 14:48:29","func_code":"def selection_sort(a):\n p = 0\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} @@ -819,8 +819,8 @@ {"submission_id":18,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2016-11-29 14:50:37","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":37531,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:50:50","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":14334,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:50:50","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":40214,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:50:57","func_code":"def circumference(r):\n q = 2 * 3.141 * r\n return q","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12027,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:50:57","func_code":"def area(r):\n s = 3.141 * r ** 2\n return s","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":40214,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:50:57","func_code":"def circumference(r):\n q = 2 * 3.141 * r\n return q","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":12027,"user":"32a14d12-9054-46cd-aa7e-4bf97d33fa10","date":"2016-11-29 14:50:57","func_code":"def area(r):\n s = 3.141 * r ** 2\n return s","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":6744,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:51:03","func_code":"def selection_sort(a):\n i = 0\n while i < len(a) - 1:\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":14859,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2016-11-29 14:51:03","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":15208,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2016-11-29 14:51:03","func_code":"def selection_sort(a):\n i = 0\n while i < len(a) - 1:\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} @@ -859,14 +859,14 @@ {"submission_id":18690,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2016-11-29 14:56:35","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":19471,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:56:48","func_code":"def selection_sort(a):\n p = 0\n j = 0\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":38865,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2016-11-29 14:56:48","func_code":"def selection_sort(a):\n p = 0\n j = 0\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":38892,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:56:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37636,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:56:49","func_code":"def area(r):\n y = pi * r ** 2\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":38892,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:56:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":37636,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 14:56:49","func_code":"def area(r):\n y = pi * r ** 2\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":14103,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2016-11-29 14:56:58","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":12424,"user":"a58f503b-2a5d-430c-aea3-11134a0daeb8","date":"2016-11-29 14:57:05","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":10237,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:57:14","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":4758,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2016-11-29 14:57:14","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":31093,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:57:30","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":33988,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:57:30","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":31093,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:57:30","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":33988,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2016-11-29 14:57:30","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":8632,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 14:57:39","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - 1 - i)\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":4376,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2016-11-29 14:58:20","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":40148,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2016-11-29 14:58:31","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} @@ -886,7 +886,7 @@ {"submission_id":18906,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 15:01:34","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":37720,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2016-11-29 15:01:34","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":335,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2016-11-29 15:01:51","func_code":"def reverse(a):\n i = 0\n j = -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","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":372,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:06:22","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":372,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:06:22","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":25145,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 15:06:27","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":35227,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2016-11-29 15:06:27","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":26476,"user":"4733f087-f7f5-4b28-b898-9a23b2f59251","date":"2016-11-29 15:06:39","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -896,16 +896,16 @@ {"submission_id":25354,"user":"e8eb24cb-1a57-439b-8705-aed3cec25793","date":"2016-11-29 15:08:16","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":4626,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 15:09:03","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":14413,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2016-11-29 15:09:03","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":15630,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 15:09:37","func_code":"def circumference(n):\n return 2 * 3.141 * n","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1666,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 15:09:37","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":15630,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 15:09:37","func_code":"def circumference(n):\n return 2 * 3.141 * n","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":1666,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2016-11-29 15:09:37","func_code":"def area(n):\n return 3.141 * n ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":32902,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2016-11-29 15:09:47","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":34788,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:09:55","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22933,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:09:55","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":34788,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:09:55","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":22933,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:09:55","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":40714,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 15:10:48","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":813,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2016-11-29 15:10:48","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":12257,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 15:11:41","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":39988,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2016-11-29 15:11:41","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":37969,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 15:11:54","func_code":"def area(n):\n p * n ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":37969,"user":"17658437-97b1-4a8a-ac6f-a63a54536e33","date":"2016-11-29 15:11:54","func_code":"def area(n):\n p * n ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":29218,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 15:12:57","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":33971,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2016-11-29 15:12:57","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":7877,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2016-11-29 15:13:16","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} @@ -942,9 +942,9 @@ {"submission_id":14386,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 15:27:36","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":1352,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2016-11-29 15:27:36","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":31404,"user":"621f49f9-6d90-49c2-ada6-2cb48080552a","date":"2016-11-29 15:31:40","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":14408,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:37:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39399,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:43:16","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19862,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:43:16","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":14408,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:37:33","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":39399,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:43:16","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":19862,"user":"29883390-7aa0-4484-9f1e-6fd0c1c8c420","date":"2016-11-29 15:43:16","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":11958,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 15:51:49","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i <= j:\n swap(a, i, j)\n i += 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":27266,"user":"5a6b9af4-c978-4326-ba5b-405c4a284f15","date":"2016-11-29 15:52:09","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":38052,"user":"5a6b9af4-c978-4326-ba5b-405c4a284f15","date":"2016-11-29 15:52:09","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} @@ -955,27 +955,27 @@ {"submission_id":15753,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2016-11-29 15:53:32","func_code":"def smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n return p\n\n\ndef swap(a, i, p):\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = smallest(a, i)\n swap(a, i, p)\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":27343,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 15:54:40","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":23043,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2016-11-29 15:54:40","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_smallest_position(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = find_smallest_position(a, i)\n swap(a, i, p)\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":32944,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:38:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8559,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:41:05","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":11757,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:41:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":32944,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:38:45","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":8559,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:41:05","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":11757,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 17:41:05","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":25363,"user":"6ae36e81-5a79-4a87-a484-a86635591a14","date":"2016-11-29 17:50:08","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":2850,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 18:46:51","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1204,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 18:46:51","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19092,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 19:08:08","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":521,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 19:08:08","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":2850,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 18:46:51","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":1204,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 18:46:51","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":19092,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 19:08:08","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":521,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2016-11-29 19:08:08","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":25952,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 21:40:44","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n return a\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, len(a) - 1 - i, i)\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":33556,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 21:42:54","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":30550,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2016-11-29 21:42:54","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":751,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-30 17:30:32","func_code":"def swap(a, i, p):\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n\n\ndef findsmallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = findsmallest(a, i)\n swap(a, i, p)\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":7564,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2016-11-30 17:30:32","func_code":"def swap(a, i, p):\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n\n\ndef findsmallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = findsmallest(a, i)\n swap(a, i, p)\n i += 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":32464,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:41:51","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":38448,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:41:51","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17976,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22824,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6783,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17119,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":2104,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":32464,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:41:51","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":38448,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:41:51","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":15,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":17976,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":22824,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":6783,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":17119,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":2104,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-02 22:47:21","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} {"submission_id":11945,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-03 13:20:26","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i != j:\n swap(a, i, j)\n i += 1\n j -= 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":31694,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-03 13:21:48","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2 - 1:\n swap(a, i, j)\n i += 1\n j -= 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":28558,"user":"15c8870d-4f5a-4578-b0fb-4dd4a4402626","date":"2017-01-03 13:22:44","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i += 1\n j -= 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -990,9 +990,9 @@ {"submission_id":41838,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-01-15 11:15:13","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":1293,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-01-15 12:04:05","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":28102,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-01-15 12:04:05","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":16832,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:29:03","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17906,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:32:10","func_code":"def circumference(r):\n y = 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16658,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:32:10","func_code":"def area(r):\n y = pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":16832,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:29:03","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":17906,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:32:10","func_code":"def circumference(r):\n y = 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":16658,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 02:32:10","func_code":"def area(r):\n y = pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":9853,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-01-16 05:18:07","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = low + (high - low) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":17235,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-01-16 05:18:07","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = low + (high - low) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":4984,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-01-16 05:18:07","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = low + (high - low) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} @@ -1001,52 +1001,52 @@ {"submission_id":38547,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-01-16 09:05:55","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":2764,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-01-16 09:05:55","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":28248,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-01-16 09:05:55","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":23782,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:20:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37805,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:20:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":332,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:22:58","func_code":"def area(r):\n return 3.14 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26249,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:22:58","func_code":"def circumference(r):\n return 3.14 * r * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15069,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4436,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35683,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3543,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31720,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":5182,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":5913,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:45","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30617,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:45","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17163,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19402,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19683,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21001,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39510,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24546,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4534,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41909,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30233,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:38:08","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39172,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:38:08","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42281,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31858,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4904,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41720,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17956,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15466,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25801,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":58,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22405,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12031,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4447,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10274,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40291,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10300,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27838,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40232,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22831,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11598,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":23782,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:20:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37805,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:20:02","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":332,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:22:58","func_code":"def area(r):\n return 3.14 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":26249,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:22:58","func_code":"def circumference(r):\n return 3.14 * r * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":15069,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":4436,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":35683,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":3543,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":31720,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":5182,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-01-16 10:23:38","func_code":"def circumference(r):\n return 3.141 * r * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":5913,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:45","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":30617,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:45","func_code":"def double(x):\n return 2 * x","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":17163,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:53","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":19402,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:25:53","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":19683,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":21001,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":39510,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":24546,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4534,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":41909,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-01-16 13:26:56","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":30233,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:38:08","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":39172,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:38:08","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":42281,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":31858,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":4904,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41720,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":17956,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":15466,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":25801,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":58,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":22405,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":12031,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4447,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def square_perimeter(side):\n return 4 * side","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":10274,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def rectangle_perimeter(l, w):\n return 2 * (l + w)","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":40291,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":10300,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_circumference(r):\n return r * 2 * 3.14","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":27838,"user":"e45f938b-9d5c-4838-86ce-0755e3c97053","date":"2017-01-19 15:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":40232,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22831,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11598,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-01-19 21:10:59","func_code":"def square_area(side):\n return side * side","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":30143,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-01-21 16:46:40","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":266,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-01-21 16:46:40","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":3006,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 15:55:59","func_code":"def double(n):\n m = n * 2\n print(m)","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":40664,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 15:58:03","func_code":"def double(n):\n m = n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":33051,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 16:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41700,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 16:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":3006,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 15:55:59","func_code":"def double(n):\n m = n * 2\n print(m)","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":40664,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 15:58:03","func_code":"def double(n):\n m = n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":33051,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 16:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":41700,"user":"336d0cd0-002e-4296-ba45-582077aac4a4","date":"2017-02-07 16:05:07","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":9079,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-02-24 11:11:03","func_code":"def swap_keys_values(d):\n return dict([(v, k) for k, v in list(d.items())])","func_name":"swap_keys_values","assignment_id":"swap_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","correct":true} {"submission_id":1681,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-02-24 11:11:03","func_code":"def swap_keys_values(d):\n return dict([(v, k) for k, v in list(d.items())])","func_name":"swap_keys_values","assignment_id":"swap_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","correct":true} {"submission_id":30791,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-02-24 11:11:37","func_code":"def swap_unique_keys_values(d):\n return dict([(v, k) for k, v in list(d.items()) if list(d.values()).\n count(v) == 1])","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} @@ -2350,30 +2350,22 @@ {"submission_id":23656,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-03-11 18:41:26","func_code":"def append2list(l1, l2=None):\n if l2 is None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} {"submission_id":11871,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-03-11 18:51:41","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return bool(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2) < r1 + r2)","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":false} {"submission_id":27784,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-03-11 18:51:41","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return bool(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2) < r1 + r2)","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":false} -{"submission_id":12920,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":25902,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def search(list, num):\n i = 0\n while i < len(list):\n if list[i] == num:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"funcs.py_ca278_search","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":12920,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":21953,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":15745,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"funcs.py_ca278_print_keys","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33700,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":15745,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"print_keys","academic_year":2016,"module":"ca278","description":"Print all the keys in a dictionary, one per line.","test":"assert print_keys({})==None and print_keys({})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None","correct":true} {"submission_id":34248,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:50:22","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":27791,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":25367,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33527,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":11255,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":3092,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"funcs.py_ca278_print_keys","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":25367,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} +{"submission_id":33527,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} +{"submission_id":11255,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} +{"submission_id":3092,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"print_keys","academic_year":2016,"module":"ca278","description":"Print all the keys in a dictionary, one per line.","test":"assert print_keys({})==None and print_keys({})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None","correct":true} {"submission_id":4043,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":16931,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":244,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"funcs.py_ca278_print_keys","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23585,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":11,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"funcs.py_ca278_print_keys","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":244,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"print_keys","academic_year":2016,"module":"ca278","description":"Print all the keys in a dictionary, one per line.","test":"assert print_keys({})==None and print_keys({})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None","correct":true} +{"submission_id":11,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def print_keys(dict):\n for key in dict:\n print(key)","func_name":"print_keys","assignment_id":"print_keys","academic_year":2016,"module":"ca278","description":"Print all the keys in a dictionary, one per line.","test":"assert print_keys({})==None and print_keys({})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None and print_keys({'key1': 'a', 'key2': 'b', 'key3': 'a'})==None","correct":true} {"submission_id":2860,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":201,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def search(list, num):\n i = 0\n while i < len(list):\n if list[i] == num:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"funcs.py_ca278_search","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6848,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":31050,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28981,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":91,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def search(list, num):\n i = 0\n while i < len(list):\n if list[i] == num:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"funcs.py_ca278_search","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15712,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":3693,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-11 21:53:19","func_code":"def search(list, num):\n i = 0\n while i < len(list):\n if list[i] == num:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"funcs.py_ca278_search","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":69,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-03-12 01:05:07","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":31439,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-03-12 01:05:07","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":37494,"user":"3a14771a-b55c-44f8-97ab-0376389e494c","date":"2017-03-12 10:56:24","func_code":"def append2list(l1, l2=None):\n if l2 == None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} @@ -2589,27 +2581,22 @@ {"submission_id":28580,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-03-14 21:03:00","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5\n if float(r1) > distance - r2 and float(r2) > distance - r1:\n return True\n else:\n return False","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":3267,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-03-14 21:06:19","func_code":"def append2list(l1, l2=None):\n if l2 == None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} {"submission_id":3682,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-03-14 21:06:19","func_code":"def append2list(l1, l2=None):\n if l2 == None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} -{"submission_id":24069,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:11:45","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":24069,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:11:45","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":26705,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:11:45","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":980,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:11:45","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":13579,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:11:45","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":19713,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:13:05","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30921,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:13:05","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":30921,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:13:05","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":11312,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:13:05","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 1\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 1\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":false} {"submission_id":23781,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 21:13:05","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":15415,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-03-14 21:16:24","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n dist = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5\n return dist < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":40135,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-03-14 21:16:24","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n dist = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5\n return dist < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} -{"submission_id":5763,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 7\n else:\n return 10","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23219,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} {"submission_id":3396,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":20662,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 7\n else:\n return 10","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4569,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":17941,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":17941,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":31431,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":4025,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":5400,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":21273,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 7\n else:\n return 10","func_name":"get_price","assignment_id":"funcs.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":17565,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":5400,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} +{"submission_id":17565,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":42389,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-14 22:13:20","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":14644,"user":"cc092be9-9a93-44dc-8aef-c2a75acd4b48","date":"2017-03-15 10:45:37","func_code":"def append2list(l1, l2=None):\n if l2 is None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} {"submission_id":30772,"user":"cc092be9-9a93-44dc-8aef-c2a75acd4b48","date":"2017-03-15 10:46:06","func_code":"def append2list(l1, l2=None):\n if l2 is None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} @@ -2809,51 +2796,34 @@ {"submission_id":13508,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-03-17 23:48:04","func_code":"def append2list(l1, l2=None):\n if l2 == None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} {"submission_id":20816,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-03-17 23:49:20","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n rad = (r1 + r2) ** 2\n xs = (x1 - x2) ** 2\n ys = (y1 - y2) ** 2\n both_x_y = xs + ys\n if rad > both_x_y:\n return True\n else:\n return False","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":false} {"submission_id":6548,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-03-17 23:49:20","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n rad = (r1 + r2) ** 2\n xs = (x1 - x2) ** 2\n ys = (y1 - y2) ** 2\n both_x_y = xs + ys\n if rad > both_x_y:\n return True\n else:\n return False","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":false} -{"submission_id":29865,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs08.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30845,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs08.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":29865,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":5172,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} {"submission_id":9263,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def search(str, sub):\n i = 0\n while i < len(str):\n if sub == str[i]:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":1697,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def countdown(num):\n while num >= 0:\n print(num)\n num = num - 1","func_name":"countdown","assignment_id":"funcs08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19621,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":25402,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:15:26","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":12563,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs08.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":4832,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def countdown(num):\n while num >= 0:\n print(num)\n num = num - 1","func_name":"countdown","assignment_id":"funcs08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":12563,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":9477,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def search(str, sub):\n i = 0\n while i < len(str):\n if sub == str[i]:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":3813,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15050,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def search(str, sub):\n i = 0\n while i < len(str):\n if sub == str[i]:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":22441,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":450,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def countdown(num):\n while num >= 0:\n print(num)\n num = num - 1","func_name":"countdown","assignment_id":"funcs08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":19517,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def countdown(num):\n while num >= 0:\n print(num)\n num = num - 1","func_name":"countdown","assignment_id":"funcs08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40370,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} {"submission_id":27780,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def search(str, sub):\n i = 0\n while i < len(str):\n if sub == str[i]:\n return i\n i = i + 1\n return -1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":30823,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":30331,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs08.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26095,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} -{"submission_id":9215,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs08.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":28848,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs08.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":9215,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":29879,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":16258,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"funcs08.py_ca278_weird_case","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":3735,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} +{"submission_id":16258,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def weird_case(some_str):\n new_str = ''\n i = 0\n lc = 0\n while i < len(some_str):\n if some_str[i].isalpha():\n if lc % 2 == 0:\n new_str += some_str[i].upper()\n else:\n new_str += some_str[i].lower()\n lc += 1\n else:\n new_str += some_str[i]\n i = i + 1\n return new_str","func_name":"weird_case","assignment_id":"weird_case","academic_year":2016,"module":"ca278","description":"Takes a string some_str and contains a new string which is the same as some_str but the case alternates between upper and lower.","test":"assert weird_case('au0x6')==Au0X6 and weird_case('F:BnJ')==F:bNj","correct":false} {"submission_id":7928,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def merge_lists(l1, l2):\n l3 = []\n i = 0\n while i < len(l1):\n l3.append(l1[i])\n i += 2\n i = 0\n while i < len(l2):\n l3.append(l2[i])\n i += 2\n return l3","func_name":"merge_lists","assignment_id":"merge_lists","academic_year":2016,"module":"ca278","description":"Take two lists l1 and l2 and return a third list which contains every second element of l1 and l2.","test":"assert merge_lists([],[])==[] and merge_lists([],[1, 2, 3, 4])==[1, 3] and merge_lists([1, 2, 3, 4],[])==[1, 3] and merge_lists([10, 20, 45, 2, -10987, 89165],[9, 0, -6754, 5625264, 8765])==[10, 45, -10987, 9, -6754, 8765]","correct":true} {"submission_id":1498,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def remove_zeros(list):\n while 0 in list:\n list.remove(0)","func_name":"remove_zeros","assignment_id":"remove_zeros","academic_year":2016,"module":"ca278","description":"Take a list of numbers and removes the zeros from it.","test":"assert remove_zeros([])==None and remove_zeros([])==None and remove_zeros([5202, -24344, -6528])==None and remove_zeros([5202, -24344, -6528])==None","correct":true} -{"submission_id":8366,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-20 22:16:19","func_code":"def get_price(age):\n if age <= 16:\n return 5\n elif age <= 60:\n return 10\n else:\n return 7","func_name":"get_price","assignment_id":"funcs08.py_ca278_get_price","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37457,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:01:16","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":37876,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:01:16","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":15982,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:01:16","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37000,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:01:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":34334,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:06:00","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":14377,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:06:00","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":3806,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:06:00","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15685,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:06:00","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16156,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:08:04","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":6856,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:08:04","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15769,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:08:04","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":25995,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:08:04","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":28999,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:24:37","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":13229,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:24:37","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":29162,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:24:37","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24673,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:24:37","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":246,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:25:21","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7972,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:25:21","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":21922,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:25:21","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":42292,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:25:21","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n fibN_2 = 1\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -2861,154 +2831,96 @@ {"submission_id":10080,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":34755,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n if n == 1:\n return 1\n else:\n fibN_2 = 0\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":30075,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n if n == 1:\n return 1\n else:\n fibN_2 = 0\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":18093,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12762,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":21333,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13111,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:35:58","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":35583,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":41631,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":24877,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":7076,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17387,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":39739,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":16611,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":5800,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17159,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14010,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":5613,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22291,"user":"94e64aae-7bb0-45bd-8969-e98b17d0a3da","date":"2017-03-21 22:38:14","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":5814,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 12:19:19","func_code":"def countdown(num):\n i = int(input())\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37372,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:29:37","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":16610,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:29:37","func_code":"def countdown(num):\n for n in range(num):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23593,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:29:37","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = [0]\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34475,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:29:37","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":35706,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:01","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":36031,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:01","func_code":"def countdown(num):\n for n in range(num):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21222,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:01","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":1571,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:01","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = [0]\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":9814,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:41","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = [0]\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23046,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:41","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":8487,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:41","func_code":"def countdown(num):\n for n in range(num, -1):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":9226,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:30:41","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":40156,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:33:26","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":2042,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:33:26","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = []\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":235,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:33:26","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":28709,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:33:26","func_code":"def countdown(num):\n for n in range(num, -1):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":6045,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:34:58","func_code":"def countdown(num):\n for n in range(num, 0):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11558,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:34:58","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":28484,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:34:58","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34227,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:34:58","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = []\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":9382,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":41441,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def countdown(num):\n for n in range(num, 0, -1):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39555,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":12766,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31136,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = []\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":8670,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":11716,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = []\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":37523,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def countdown(num):\n for n in range(num, 0, -1):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33897,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def fibonacci(n):\n inc1 = 1\n inc2 = 0\n inc3 = ''\n l1 = []\n for fib in range(0, n + 1):\n inc3 = inc2\n inc2 = inc1\n inc1 = inc3 + inc2\n l1.append(inc3)\n return l1[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":32092,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":17304,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":414,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-22 12:35:18","func_code":"def countdown(num):\n for n in range(num, 0, -1):\n print(n)\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":39697,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 12:55:56","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30402,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:00:38","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39429,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:00:38","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":38356,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:01:24","func_code":"def countdown(num):\n i = 0\n while i < num:\n print(i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22953,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:01:56","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":29901,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:01:57","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10088,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:02:24","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38802,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:02:24","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":16137,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:02:24","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33444,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:03:34","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":28533,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:03:34","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n else:\n print(num)\n time.sleep(0.1)\n print('LIFT OFF!')\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33454,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:04:42","func_code":"def search(string, letter):\n i = 0\n if letter in string:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":10430,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:04:42","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27737,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:05:25","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":8534,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:05:25","func_code":"def countdown(num):\n A = 'LIFT OFF!'\n if int(num) == 1:\n print(num)\n print(A)\n else:\n print(num)\n time.sleep(0.1)\n print(A)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":15949,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:06:01","func_code":"def countdown(num):\n A = 'LIFT OFF!'\n if int(num) == 1:\n print(num)\n print(A)\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)\n print(A)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21826,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:06:01","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16664,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:06:27","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return str, letter","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":35203,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:06:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')\n return str, letter","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":30014,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:06:27","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":27884,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:07:17","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1557,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:07:17","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')\n return","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":31036,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:07:17","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)\n return","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":5975,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:07:31","func_code":"def countdown(num):\n A = 'LIFT OFF!'\n if int(num) == 1:\n print(num)\n print(A)\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)\n print(A)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17094,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:07:31","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15943,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:08:00","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":25451,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:08:00","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":12566,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:08:00","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33343,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:08:02","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":41160,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:08:02","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24650,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:08:30","func_code":"def search(string, letter):\n if letter in string:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23268,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:08:30","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31310,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:08:30","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":39010,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:09:03","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":39209,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:09:03","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":25368,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:09:56","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20818,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:09:56","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":13329,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:09:56","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":39141,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:10:39","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":804,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:10:39","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2259,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:10:39","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":32052,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:30","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11539,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:30","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n print(i)\n else:\n print('-1')","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":16385,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:30","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":18670,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:58","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7136,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:58","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":1980,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:11:58","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":16844,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:11:58","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2327,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:12:48","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return true\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":7102,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:12:48","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":39407,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:12:48","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":22282,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:13:03","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36204,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:13:03","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":23097,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:13:03","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":36625,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:13:07","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39083,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:13:22","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return False\n else:\n return True","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":6387,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:14:14","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return False\n return True","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":39335,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:14:37","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":15162,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:15:42","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":16510,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:16:19","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41618,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:16:19","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":24718,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:16:19","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n letter = letter[0]","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":16741,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:16:44","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30079,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:16:44","func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":685,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:17:28","func_code":"def index(str, letter):\n for item in str:\n if item == letter:\n return item\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":11717,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:17:28","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35693,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:17:28","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":5685,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:17:29","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":9354,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:17:29","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31190,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:17:29","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n\n\ndef search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')\n\n\ndef index(str, letter):\n i = 0\n if letter in str:\n letter = letter[0]","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":30458,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:17:30","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27712,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:17:30","func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return string","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":39976,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:19:27","func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return 1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":39980,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:19:27","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":20636,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-22 13:19:36","func_code":"def countdown(num):\n i = 0\n while i < num:\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30414,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-22 13:19:36","func_code":"def countdown(num):\n i = 0\n while i < num:\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38807,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-22 13:19:36","func_code":"def countdown(num):\n i = 0\n while i < num:\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12090,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:21:49","func_code":"def search(string, letter):\n if letter in string:\n print('True')\n else:\n print('False')\n return letter","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":40702,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:21:49","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":146,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:22:12","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29855,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:23:54","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33371,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:23:54","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39685,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:23:54","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return False","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":28700,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:23:59","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18535,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:24:09","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":27949,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:24:09","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29489,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:24:20","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":6184,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:24:20","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27099,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:24:20","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":11572,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:27:35","func_code":"def search(str, letter):\n list(map(split, str))\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":32136,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:27:35","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24356,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:28:37","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32769,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:28:37","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":35081,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:30:04","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18149,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":33544,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":24977,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":14194,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":29804,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31783,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":9315,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":20212,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -3016,144 +2928,91 @@ {"submission_id":32214,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":4077,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":38091,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-22 13:30:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":2999,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:30:46","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":35813,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:30:47","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8528,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:30:47","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":10071,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:30:47","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22121,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:30:47","func_code":"def fibonacci(n):\n i = 0\n num = 1\n num1 = 1\n num2 = 1\n while i < n:\n if n == 0:\n return 0\n elif n == 1:\n return 1\n num = num3 + num2\n num2 = num3\n num3 = num\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":16505,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:31:13","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":7630,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:31:13","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":40910,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:31:13","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14749,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:31:13","func_code":"def fibonacci(n):\n i = 0\n num = 1\n num1 = 1\n num2 = 1\n while i < n:\n if n == 0:\n return 0\n elif n == 1:\n return 1\n num = num2 + num1\n num1 = num2\n num2 = num\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":19663,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:31:19","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":10191,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:32:12","func_code":"def countdown(count):\n while count >= 1:\n print(count, 'LIFT OFF!\\n')\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36868,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:32:21","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":29947,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:32:21","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10990,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:32:21","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":39652,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:32:21","func_code":"def fibonacci(n):\n i = 0\n num = 1\n num1 = 1\n num2 = 1\n if n == 0:\n return 0\n elif n == 1:\n return 1\n while i < n:\n num = num2 + num1\n num1 = num2\n num2 = num\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":4509,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:32:32","func_code":"def countdown(count):\n while count >= 1:\n print(count, 'LIFT OFF!')\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":40307,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:32:51","func_code":"def countdown(count):\n while count >= 1:\n print(count, end=' ')\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28488,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:32:58","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":38947,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:32:58","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37364,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:32:58","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i < n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":21563,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:32:58","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":7950,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:02","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29485,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:02","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16084,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":11798,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":20201,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33651,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30926,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30731,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":3951,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":7161,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:33:15","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":33294,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:33:19","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":31637,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:33:28","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32731,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:33:28","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":10873,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:33:28","func_code":"def fibonacci(n):\n i = 0\n num = 1\n num1 = 1\n num2 = 1\n if n == 0:\n return 0\n elif n == 1:\n return 1\n while i < n:\n num = num2 + num1\n num1 = num2\n num2 = num\n print(num)\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":15561,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:33:28","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30552,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7654,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":11003,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":24457,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10529,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9391,"user":"46396c6c-a25c-4fd6-ac1b-a1163f81f5f8","date":"2017-03-22 13:33:40","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17026,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:33","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":24250,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:33","func_code":"def fibonacci(n):\n i = 2\n num = 1\n num1 = 1\n num2 = 1\n if n == 0:\n return 0\n elif n == 1:\n return 1\n while i < n:\n num = num2 + num1\n num1 = num2\n num2 = num\n print(num)\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":2367,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:33","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23919,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:33","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":3963,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30410,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":34344,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def index(string, letter):\n i = 0\n test = -1\n while i < len(string):\n if letter == string[i]:\n test = i\n i = i + 1\n return test","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":40801,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15928,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def fibonacci(n):\n i = 2\n num = 1\n num1 = 1\n num2 = 1\n if n == 0:\n return 0\n elif n == 1:\n return 1\n while i < n:\n num = num2 + num1\n num1 = num2\n num2 = num\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":34512,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def countdown(num):\n i = num\n while i > 0:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41791,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def search(string, letter):\n i = 0\n test = 1\n while i < len(string):\n if letter == string[i]:\n return True\n test = 2\n i = i + 1\n if test == 1:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34800,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:34:50","func_code":"def fibonacci(n):\n i = 2\n num = 1\n num1 = 1\n num2 = 1\n if n == 0:\n return 0\n elif n == 1:\n return 1\n while i < n:\n num = num2 + num1\n num1 = num2\n num2 = num\n i = i + 1\n if n != 0 and n != 1:\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":39239,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:35:54","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5362,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:35:54","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":38572,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:38:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":21605,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:38:32","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11839,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:38:32","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":16494,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:39:10","func_code":"def countdown(num):\n print(num)\n if num != 0:\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33396,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-03-22 13:39:24","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33820,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-03-22 13:39:24","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23369,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-03-22 13:39:24","func_code":"def countdown(num):\n i = 0\n x = num\n while i < num:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20870,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-03-22 13:39:24","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23838,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:39:39","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41424,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:40:04","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n elif letter != string[-1]:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":2426,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:40:04","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":5771,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:40:41","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28087,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:40:41","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":950,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:41:25","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36515,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:41:25","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":7979,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:42:13","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1397,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:42:13","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":35488,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:17","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28595,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:17","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":20827,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:17","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":1922,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:17","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":10480,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:42:32","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28593,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:42:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34058,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:42:32","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":2857,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:46","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":12889,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:46","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":4266,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:46","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34419,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:42:46","func_code":"def search(str, letter, pos):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":28094,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":376,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32283,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15732,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":25477,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":7180,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":30248,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12029,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str) and str[i] != letter:\n i += 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":28571,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')\n return num","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40464,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":38370,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":36883,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-22 13:43:16","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":42370,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:24","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24527,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:24","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18826,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:24","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":15214,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:41","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21291,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:41","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22902,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:43:41","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":38873,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:43:43","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33415,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:43:55","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16328,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:43:55","func_code":"def search(string, letter):\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\n i = i + 1","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":3552,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:44:20","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return len[:i]\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":21321,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:44:20","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":38041,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:44:20","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10022,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:44:54","func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n elif i < len(string):\n i = i + 1\n search(string[i + 1], letter)\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":42154,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:44:54","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":37356,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:45:36","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29213,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:46:00","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":13295,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:46:00","func_code":"def index(str, letter):\n for item in ls:\n return str - 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":30540,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:46:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":6898,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:47:28","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7498,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:47:28","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":13465,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:47:47","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30649,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:47:47","func_code":"def index(str, letter):\n for item in ls:\n return str - 1\n return index","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":15582,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:47:47","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8521,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:48:38","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":17866,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:48:38","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34129,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:48:38","func_code":"def index(str, letter):\n for item in str:\n return str - 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":833,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":40127,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9472,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15019,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":40402,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19015,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":8306,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":41917,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26870,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23745,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":12678,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":5955,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-22 13:49:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":2634,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:49:37","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":16125,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:49:37","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38885,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:49:37","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":13822,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:49:58","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24121,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:49:58","func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 1], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":25026,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":30740,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -3161,31 +3020,19 @@ {"submission_id":9652,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":13413,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":14331,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":5003,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33725,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":37702,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-22 13:50:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25680,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:09","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":39905,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:09","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38925,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:09","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38669,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":30917,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":16770,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":31567,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32924,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":39259,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25661,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37172,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":24327,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-22 13:50:20","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return ls","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":3237,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:51:30","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":6802,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:51:30","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17940,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 13:51:30","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":17903,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:51:45","func_code":"def index(ls, letter):\n for item in ls:\n if item == -1:\n return index","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38832,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:51:45","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25285,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 13:51:45","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":22660,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":15277,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22991,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":25028,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31666,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":26501,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":39631,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} @@ -3193,23 +3040,17 @@ {"submission_id":12679,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-22 13:52:38","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34911,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:52:47","func_code":"def fibonacci(n):\n n = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":6068,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:52:47","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":957,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:52:47","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13082,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:52:47","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23471,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:52:53","func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n i = i + 1\n search(string[i], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":1673,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:52:53","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38798,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":20078,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":19463,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":40679,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":25812,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36781,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":15011,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":28083,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":38920,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30245,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26550,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":39805,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-22 13:53:06","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":2063,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:53:26","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11313,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:53:26","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":21029,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 13:53:26","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":28801,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -3218,237 +3059,163 @@ {"submission_id":28246,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":39609,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31306,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":25396,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39938,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":29333,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":30658,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39887,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":21356,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-22 13:54:11","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":36602,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2017-03-22 13:57:54","func_code":"def countdown(num):\n i = 0\n x = num\n while i < 1:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":3483,"user":"f1bd9735-8e07-4248-830f-ae65dbe0a5c2","date":"2017-03-22 13:57:54","func_code":"def countdown(num):\n i = 0\n x = num\n while i < 1:\n print(x)\n time.sleep(0.1)\n x = x - 1\n i = i + 1\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19179,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:58:22","func_code":"def search(string, letter, count):\n i = 0\n if string[i] == letter:\n return True\n else:\n count = i + 1\n search(string[count], letter, count)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":40269,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:58:22","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":6022,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:59:30","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22122,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 13:59:30","func_code":"def search(string, letter):\n i = 0\n if string[i] == letter:\n return True\n else:\n count = i + 1\n search(string[count], letter, count)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":16066,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:02:13","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42174,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:02:13","func_code":"def search(string, *letter):\n i = 0\n if string[i] == letter[0]:\n return True\n else:\n count = i + 1\n search(string[count], letter[0])","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":28621,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:03:19","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":33931,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:03:19","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23368,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:04:39","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40837,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:04:39","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":37758,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:04:39","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23164,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:05:55","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17180,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:05:55","func_code":"def search(string, letter):\n if not i:\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 1], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":11268,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:06:05","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":39684,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:06:05","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15627,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:06:05","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23077,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:07:41","func_code":"def search(string, letter):\n if i not in search():\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 1], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":29706,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:07:41","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":35919,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:09:35","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34560,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:09:35","func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n else:\n search(string[i + 1], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":37144,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:10:23","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23520,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:10:23","func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n elif i < len(string):\n search(string[i + 1], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":17316,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:01","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":16150,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:01","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9010,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:01","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31170,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:23","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9316,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:23","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34979,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:11:23","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":24062,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:11:57","func_code":"def search(string, letter):\n if 'i' not in locals():\n i = 0\n if string[i] == letter:\n return True\n elif i < len(string):\n search(string[i + 1], letter)\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":19865,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:11:57","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5490,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:13:38","func_code":"def fibonacci(n):\n i = 0\n while i < len(n):\n if n + 1 == n + 2:\n return i\n i += 1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":42030,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:13:38","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":26511,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:13:38","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":296,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:13:38","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":32255,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:15:02","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34913,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:15:02","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":4603,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:15:02","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36622,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:15:02","func_code":"def fibonacci(n):\n i = 0\n while i < len(n - 1):\n if n + 1 == n + 2:\n return i\n i += 1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":19915,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:29:34","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":38228,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:29:34","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36346,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:29:34","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":1655,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:35:09","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14017,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:35:09","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16589,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:35:09","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":40267,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:35:09","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n print(c)\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":35876,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:01","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":26198,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:01","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":3116,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:01","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28692,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:01","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":11548,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:51","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":6391,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:51","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":12945,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:51","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10581,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:36:51","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n print(n)\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":7816,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:37:04","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39953,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:37:04","func_code":"def search(string, letter):\n if string[0] == letter:\n return True\n test = 1\n else:\n search(string[1:], letter)\n if test != 1:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":11081,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:37:39","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10321,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:37:39","func_code":"def search(string, letter):\n if string[0] == letter:\n return True\n test = 1\n else:\n search(string[1:], letter)\n if test != 1:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":40921,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:37:41","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":29177,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:37:41","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29617,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:37:41","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":4448,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:37:41","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n print(n)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23038,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:38:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":7432,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:38:06","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7696,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:38:06","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n print(c)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":8315,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:38:06","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12275,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:38:47","func_code":"def search(string, letter):\n test = 0\n if string[0] == letter:\n test = 1\n else:\n search(string[1:], letter)\n if test == 0:\n return False\n else:\n return True","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":21862,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:38:47","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36073,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:14","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n return c\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":40123,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:14","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36632,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:14","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7773,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18160,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:31","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":33953,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:31","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":12941,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:31","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14378,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:39:31","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":36387,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:01","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42112,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:01","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":12113,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:01","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":41026,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:01","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(1, n + 1):\n c = a + b\n return a\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":7135,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:44","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9734,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:44","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":12243,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:44","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n[i]\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":29068,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:44","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":15648,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:58","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4018,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:58","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17568,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:58","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31530,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:40:58","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":9301,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:29","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":31730,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:29","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":1109,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:29","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return len(n)\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":15291,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:29","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33576,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:41","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":42248,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:41","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33465,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:41","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33062,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:41:41","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":35539,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:42:43","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1726,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:42:43","func_code":"def search(string, letter):\n if string == []:\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":22294,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":23251,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:10","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8025,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:10","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return b\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":28042,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:10","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6631,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":23441,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:33","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":30684,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:33","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3153,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:43:33","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":3698,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:43:44","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":29474,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:43:44","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1311,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:45:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":31663,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:45:10","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":41308,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:45:10","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7168,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:45:10","func_code":"def fibonacci(n):\n count = 0\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return count\n a = b\n b = c\n count += 1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":33617,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:47:16","func_code":"def search(string, letter, pos):\n if pos == len(string):\n return False\n elif string[pos] == letter:\n return True\n else:\n search(string, letter, pos + 1)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":37856,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:47:16","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17319,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:01","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":30826,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:01","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21814,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:01","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":24079,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:01","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":11890,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:23","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22422,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:23","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n + 2\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":12951,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:23","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32035,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:48:23","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":36595,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":39997,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":2079,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":534,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":20215,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":6060,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":5580,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18674,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 14:48:35","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":2529,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:49:22","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25896,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:49:22","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":16957,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33625,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":16437,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6458,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":22004,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":23014,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":30808,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":39709,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":42100,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":1751,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19413,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":35747,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-22 14:52:26","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26339,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:07","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3214,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:07","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":21587,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n ans = fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":42094,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:39","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":7874,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:39","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":35513,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 14:58:39","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":10935,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:58:45","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31929,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:58:45","func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":2145,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:58:45","func_code":"def fibonacci(n):\n old = 1\n cur = 1\n i = 1\n while i < n:\n cur, old, i = cur + old, cur, i + 1\n return cur","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":11976,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:58:45","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":37546,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:59:28","func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":31809,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:59:28","func_code":"def fibonacci(n):\n old = 1\n cur = 1\n i = 1\n while i < n:\n cur, old, i = cur + old, cur, i + 1\n return cur","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18856,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:59:28","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":13741,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 14:59:28","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2114,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:01:38","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":13997,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:01:38","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":291,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:01:38","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8468,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:01:38","func_code":"def index(string, letter, pos):\n if pos == len(string):\n return -1\n elif string[pos] == letter:\n return pos\n else:\n return index(string, letter, pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":37384,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:02:47","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":14530,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:02:47","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25341,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:02:47","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":23394,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:02:47","func_code":"def index(string, letter, pos):\n if pos == len(string):\n return -1\n elif string[pos] == letter:\n return pos\n else:\n index(string, letter, pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":7649,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:03:32","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4695,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:03:32","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":8808,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:03:32","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":2807,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:03:32","func_code":"def index(string, letter, pos):\n if pos == len(string):\n return -1\n elif string[pos] == letter:\n return pos\n else:\n index(string, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":40031,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:07:08","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38589,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:07:47","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26679,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:07:47","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":11560,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:07:47","func_code":"def index(string, letter, count):\n if count == len(string) - 1:\n return -1\n elif string[count] == letter:\n return count\n else:\n index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":12477,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:07:47","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":7422,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:07:58","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":2680,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:07:58","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13725,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:10:16","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":15371,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:10:16","func_code":"def index(string, letter, count):\n print(count)\n if count == len(string) - 1:\n return -1\n elif string[count] == letter:\n return count\n else:\n index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":39669,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:10:16","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19816,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:10:16","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":10855,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":37796,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:33","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23380,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:33","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":19180,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:11:42","func_code":"def index(string, letter, count):\n print(count)\n k = len(string)\n if count == k:\n return -1\n elif string[count] == letter:\n return count\n else:\n index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":11186,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:11:42","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":30716,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:11:42","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":10806,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:11:42","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":13092,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:51","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31332,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:51","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":19577,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:11:51","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17084,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:16","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":36072,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:16","func_code":"def index(string, letter, count):\n print(count)\n k = len(string)\n if count == k:\n print(-1)\n elif string[count] == letter:\n print(count)\n else:\n index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":12908,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:16","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33875,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:16","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":24119,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:29","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10739,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:29","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":1394,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:29","func_code":"def index(string, letter, count):\n k = len(string)\n if count == k:\n print(-1)\n elif string[count] == letter:\n print(count)\n else:\n index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":2942,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:12:29","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2422,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26023,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13240,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":6416,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25162,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":27158,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":37111,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":16524,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":19932,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":40672,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":5430,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13528,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-22 15:13:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":30595,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:05","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":6539,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:05","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":27475,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:05","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31642,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:05","func_code":"def index(string, letter, count):\n print(count)\n k = len(string)\n if count == k:\n return -1\n elif string[count] == letter:\n return count\n else:\n return index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":38764,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:18","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":33913,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:18","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":14672,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:18","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38586,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:18","func_code":"def index(string, letter, count):\n k = len(string)\n if count == k:\n return -1\n elif string[count] == letter:\n return count\n else:\n return index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":6716,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":40446,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41068,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def index(string, letter, count):\n k = len(string)\n if count == k:\n return -1\n elif string[count] == letter:\n return count\n else:\n return index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":16354,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":8882,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def countdown(num):\n if num != 0:\n print(num)\n countdown(num - 1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20756,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":29248,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def index(string, letter, count):\n k = len(string)\n if count == k:\n return -1\n elif string[count] == letter:\n return count\n else:\n return index(string, letter, count + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":12092,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -3456,80 +3223,57 @@ {"submission_id":22501,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9161,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":35446,"user":"e787ded7-43af-4b69-82c1-c646ab388711","date":"2017-03-22 15:14:33","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":6318,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:29:07","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15723,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:37:12","func_code":"def search(str, letter):\n for char in str:\n if char == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":9634,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:37:12","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":34523,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:37:12","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6721,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:37:12","func_code":"def fibonacci(n):\n old = 1\n cur = 1\n i = 1\n while i < n:\n cur, old, i = cur + old, cur, i + 1\n return cur","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":5474,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:44:05","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11269,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:44:05","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":38239,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:54:36","func_code":"def search(str, letter):\n for c in str:\n if c == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":30342,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:54:36","func_code":"def fibonacci(n):\n i = 0\n while n > i:\n n","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":16691,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:54:36","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20939,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:54:36","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":17673,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def fibonacci(n):\n if n == 0:\n return n\n elif n == 1:\n return n\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":32173,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def fibonacci(n):\n if n == 0:\n return n\n elif n == 1:\n return n\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":6801,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":34768,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5732,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":5746,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def fibonacci(n):\n if n == 0:\n return n\n elif n == 1:\n return n\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":965,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":24227,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":24858,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28725,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":1239,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":25776,"user":"9b929794-1500-4125-bf6c-79d74c111918","date":"2017-03-22 15:55:27","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":4805,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:57:45","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15329,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:57:45","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":18880,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 15:57:45","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":29037,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:59:55","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":37048,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:59:55","func_code":"def search(str, letter):\n for c in str:\n if c == letter:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":26117,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 15:59:55","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":26721,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:00:43","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":495,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:00:43","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":30639,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:00:43","func_code":"def search(str, letter):\n for c in str:\n if letter == c:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":24319,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:02:08","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5082,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:02:08","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":32252,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:02:08","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":41686,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":10278,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14183,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":36658,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8573,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":5666,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36904,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def index(str, letter):\n start = len(str) - 1\n end = -1\n while start > end:\n if letter == str[start]:\n return start\n else:\n start -= 1\n return end","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":32839,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:11:30","func_code":"def countdown(num):\n i = 0\n while num > i:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":27872,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30117,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":37190,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":16538,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5984,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":6208,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":13090,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":29738,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28329,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":9092,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":1054,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":11156,"user":"b9e7e608-6036-4d44-8770-a7036176b53c","date":"2017-03-22 16:13:16","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":4774,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:20:59","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('TAKE OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41473,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:29:08","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":8651,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:29:08","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33089,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:47:00","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":22357,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:47:00","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8416,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:47:00","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":35084,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:47:00","func_code":"def index(str, letter):\n a = len(str) - 1\n b = -1\n if letter == str[a]:\n return start\n else:\n a -= 1\n index(str, letter)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":24404,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:50:53","func_code":"def index(str, letter, pos):\n if letter == str[pos]:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":25917,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:50:53","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1129,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:50:53","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":28266,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:50:53","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":33716,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23620,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25890,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":5760,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def index(str, letter, pos):\n pos = 0\n if letter == str[pos]:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":4479,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":8272,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26281,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":16601,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32722,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def index(str, letter, pos):\n pos = 0\n if letter == str[pos]:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":35671,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4147,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-22 16:51:22","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -3537,51 +3281,32 @@ {"submission_id":30973,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:21:48","func_code":"def fibonacci(n):\n fib = [0, 1]\n i = 2\n while i < n + 1:\n tmp = int(fib[i - 2]) + int(fib[i - 1])\n fib.append(tmp)\n i += 1\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":10804,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:21:48","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":14710,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:21:48","func_code":"def index(string, letter):\n if letter in string:\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":6968,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:21:48","func_code":"def countdown(num):\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32735,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":808,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def index(string, letter):\n if letter in string:\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":36203,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def index(string, letter):\n if letter in string:\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":40752,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def fibonacci(n):\n fib = [0, 1]\n i = 2\n while i < n + 1:\n tmp = int(fib[i - 2]) + int(fib[i - 1])\n fib.append(tmp)\n i += 1\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":24308,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def countdown(num):\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21025,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":11182,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def fibonacci(n):\n fib = [0, 1]\n i = 2\n while i < n + 1:\n tmp = int(fib[i - 2]) + int(fib[i - 1])\n fib.append(tmp)\n i += 1\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":31819,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def countdown(num):\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32114,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def fibonacci(n):\n fib = [0, 1]\n i = 2\n while i < n + 1:\n tmp = int(fib[i - 2]) + int(fib[i - 1])\n fib.append(tmp)\n i += 1\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":17675,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":24280,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def index(string, letter):\n if letter in string:\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":36144,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-22 22:22:29","func_code":"def countdown(num):\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30200,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-03-23 15:48:35","func_code":"def swap_keys_values(d):\n new_d = {v: k for k, v in list(d.items())}\n return new_d","func_name":"swap_keys_values","assignment_id":"swap_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","correct":true} {"submission_id":37212,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-03-23 15:48:35","func_code":"def swap_keys_values(d):\n new_d = {v: k for k, v in list(d.items())}\n return new_d","func_name":"swap_keys_values","assignment_id":"swap_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its values.","test":"assert swap_keys_values({})=={} and swap_keys_values({'1': 'a'})=={'a': '1'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'a': '3', 'b': '2'}","correct":true} {"submission_id":13009,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-03-23 15:50:50","func_code":"def swap_unique_keys_values(d):\n seen = {}\n result = {}\n for k, v in list(d.items()):\n if v in seen:\n del seen[v]\n else:\n seen[v] = k\n result[v] = k\n return seen","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} {"submission_id":19219,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-03-23 15:50:50","func_code":"def swap_unique_keys_values(d):\n seen = {}\n result = {}\n for k, v in list(d.items()):\n if v in seen:\n del seen[v]\n else:\n seen[v] = k\n result[v] = k\n return seen","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} -{"submission_id":36799,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 18:57:43","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38417,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 18:58:10","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":12668,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 18:58:41","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26276,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:00:19","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":37512,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:00:19","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30750,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:01:55","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19306,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:01:55","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n elif letter not in str:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":8133,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:07:34","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n break\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":28337,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:07:34","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":17525,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:08:04","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15930,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:08:04","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":38012,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:08:35","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')\n i += 1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":41004,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:08:35","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33379,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:09:29","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28579,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:09:29","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')\n i += 1","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":41624,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:10:30","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":22352,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:10:30","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":8618,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:11:04","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34002,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:11:04","func_code":"def search(str, letter):\n if letter in str:\n print('True'.rstrip())\n else:\n print('False'.rstrip())","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":22433,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:12:20","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":6635,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:12:20","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1468,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:15:28","func_code":"def index(str, letter):\n return str.index(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38168,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:15:28","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":13839,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:15:28","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":978,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:18:16","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":32387,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:18:16","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7683,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:18:16","func_code":"def index(str, letter):\n return str.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":22045,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:23:07","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26979,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:23:07","func_code":"def index(str, letter):\n return str.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":31447,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:23:07","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":34271,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:23:07","func_code":"def fibonacci(n):\n a = 1\n b = 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -3589,20 +3314,15 @@ {"submission_id":33001,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def index(str, letter):\n return str.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":1136,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def index(str, letter):\n return str.find(letter)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":14096,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":22160,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32840,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def fibonacci(n):\n a = 1\n b = 1\n if n != 0:\n for i in range(n - 1):\n a, b = b, a + b\n else:\n return 0\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":26995,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":882,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:24:09","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20786,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:25:36","func_code":"def index(str, letter):\n return str.find(letter)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":38548,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:25:36","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":24829,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:25:36","func_code":"def fibonacci(n):\n a = 1\n b = 1\n if n != 0:\n for i in range(n - 1):\n a, b = b, a + b\n else:\n return 0\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":24466,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:25:36","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":20094,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23614,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":37659,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def fibonacci(n):\n a = 1\n b = 1\n if n != 0:\n for i in range(n - 1):\n a, b = b, a + b\n else:\n return 0\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":33871,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def index(str, letter, n):\n return str.find(letter)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":38240,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def index(str, letter, n):\n return str.find(letter)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":493,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def countdown(num):\n import time\n while num > 0:\n print(num)\n time.sleep(0.1)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1249,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def fibonacci(n):\n a = 1\n b = 1\n if n != 0:\n for i in range(n - 1):\n a, b = b, a + b\n else:\n return 0\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":36124,"user":"7761b9ac-f093-487b-8401-cf2d01636e78","date":"2017-03-23 19:26:12","func_code":"def search(str, letter):\n if letter in str:\n return 'True'.rstrip()\n else:\n return 'False'.rstrip()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":28823,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-03-24 12:45:45","func_code":"def append2list(l1, l2=None):\n if l2 == None:\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} @@ -3611,7 +3331,6 @@ {"submission_id":24528,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:21:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n elif n == 2:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2313,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:21:03","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8409,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:21:03","func_code":"def index(string, letter, pos=0):\n if string == '':\n return '-1'\n elif string[0] == letter:\n return pos\n else:\n pos += 1\n return index(string[1:], letter, pos=pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":26878,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:21:03","func_code":"def countdown(num):\n if num == 0:\n return 'LIFT OFF!'\n else:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35739,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def index(string, letter, pos=0):\n if string == '':\n return '-1'\n elif string[0] == letter:\n return pos\n else:\n pos += 1\n return index(string[1:], letter, pos=pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":41906,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n elif n == 2:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":23982,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -3619,15 +3338,8 @@ {"submission_id":23672,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":37895,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def index(string, letter, pos=0):\n if string == '':\n return '-1'\n elif string[0] == letter:\n return pos\n else:\n pos += 1\n return index(string[1:], letter, pos=pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":24751,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def search(string, letter):\n if string == '':\n return False\n elif string[0] == letter:\n return True\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":36438,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35208,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def index(string, letter, pos=0):\n if string == '':\n return '-1'\n elif string[0] == letter:\n return pos\n else:\n pos += 1\n return index(string[1:], letter, pos=pos)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":20654,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17438,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n elif n == 2:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":1341,"user":"813b8c22-4514-4fed-ac48-d5a7a4b068dd","date":"2017-03-24 16:22:07","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":7001,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-26 11:18:40","func_code":"def countdown(num):\n i = num\n while i > 1:\n return i\n i = i - 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":26002,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-26 11:19:18","func_code":"def countdown(num):\n i = num\n while i > 1:\n return i\n i = i - 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":36824,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-26 11:19:18","func_code":"def countdown(num):\n i = num\n while i > 1:\n return i\n i = i - 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":15544,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-26 11:19:18","func_code":"def countdown(num):\n i = num\n while i > 1:\n return i\n i = i - 1","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42151,"user":"1b62c11e-ae6b-4c7f-8eac-f8a9a0acb450","date":"2017-03-26 20:12:18","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":561,"user":"1b62c11e-ae6b-4c7f-8eac-f8a9a0acb450","date":"2017-03-26 20:16:40","func_code":"def reverse(a):\n i = len(a) - 1\n new_array = []\n while i >= 0:\n new_array.append(a[i])\n i -= 1\n return new_array","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":37674,"user":"1b62c11e-ae6b-4c7f-8eac-f8a9a0acb450","date":"2017-03-26 20:18:49","func_code":"def reverse(a):\n i = len(a) - 1\n new_array = []\n while i >= 0:\n new_array.append(a[i])\n i -= 1\n return new_array","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} @@ -3636,282 +3348,210 @@ {"submission_id":39556,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:04:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17674,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:04:42","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32826,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:04:42","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":7284,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:04:42","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4083,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:05:00","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":21494,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:05:00","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34632,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:05:00","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":28326,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:05:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12064,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:06:55","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15599,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:06:55","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":7786,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:06:55","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return c\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":40721,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:06:55","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":16678,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:08:51","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26052,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:08:51","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":3398,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:08:51","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":24414,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:08:51","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return c + 1\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":11744,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:09:09","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33589,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:09:09","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22609,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:09:09","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17802,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:09:09","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30626,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:19:38","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18894,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:19:38","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":15858,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:19:38","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37971,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:20:28","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":5742,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:20:28","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31000,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:20:28","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":14753,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:25:14","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n + 1):\n c = a + b\n return n\n a = b\n b = c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32593,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:25:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":22343,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:25:14","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":35596,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:25:14","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18447,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:03","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":35252,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:03","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":11467,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:03","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7334,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:32","func_code":"def fibonacci(n):\n i = 0\n while i < len(n):\n if n[i] == 0:\n return i\n i += 1\n return c\n c = i + 1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18973,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:32","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2453,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:32","func_code":"def fibonacci(n):\n i = 0\n while i < len(n):\n if n[i] == 0:\n return i\n i += 1\n return c\n c = i + 1\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":5601,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:29:32","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":8411,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:13","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3655,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:13","func_code":"def fibonacci(n):\n i = 0\n while i < n:\n if n[i] == 0:\n return i\n i += 1\n return c\n c = i + 1\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":40854,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:13","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":41841,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:13","func_code":"def fibonacci(n):\n i = 0\n while i < n:\n if n[i] == 0:\n return i\n i += 1\n return c\n c = i + 1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":20253,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:34","func_code":"def fibonacci(n):\n i = 0\n c = i + 1\n while i < n:\n if n[i] == 0:\n return i\n i += 1\n return c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":36784,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:34","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5368,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:34","func_code":"def fibonacci(n):\n i = 0\n c = i + 1\n while i < n:\n if n[i] == 0:\n return i\n i += 1\n return c\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":33146,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:34","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":330,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:57","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28846,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:57","func_code":"def fibonacci(n):\n i = 0\n c = i + 1\n while i < n:\n if n == 0:\n return i\n i += 1\n return c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":12614,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:57","func_code":"def fibonacci(n):\n i = 0\n c = i + 1\n while i < n:\n if n == 0:\n return i\n i += 1\n return c\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":4048,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:30:57","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":28722,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:00","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16273,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:00","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n return c\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":26189,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:00","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2711,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:00","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n return c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":329,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:25","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n c += 1\n return c\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":30392,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:25","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n c += 1\n return c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":20631,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:25","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9207,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:25","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3230,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:41","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9084,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:41","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2197,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:41","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n c += 1\n return c\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17294,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:32:41","func_code":"def fibonacci(n):\n i = 0\n x = 1\n c = i + x\n while i < n:\n if n == 0:\n return i\n i += 1\n c += 1\n return c","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32472,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:35:46","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26235,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:35:46","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":39842,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:35:46","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":24204,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:35:46","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26015,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:29","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]\n\n\ndef index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":35148,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:29","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35009,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:29","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":39526,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:29","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":19280,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:41","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5673,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:41","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":26241,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:41","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8867,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:36:41","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":15348,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:40:42","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":8794,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:40:42","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35701,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:40:42","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":1624,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:40:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":27154,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:45:44","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":22929,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:45:44","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34401,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:45:44","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":25869,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:45:44","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30720,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:46:10","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":26973,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:46:10","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32372,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:46:10","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17649,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:46:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":20597,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:06","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37182,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":35349,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:06","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":21652,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:06","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":20193,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:31","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31583,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:31","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":25063,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:31","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36105,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:31","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":19420,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:45","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23863,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:45","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15679,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:45","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":17100,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:45","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":31933,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:58","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42042,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:58","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":18804,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:58","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":11603,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:47:58","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":10700,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:48:43","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":8629,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:48:43","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1570,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:48:43","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":21322,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:48:43","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":41064,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:49:29","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":161,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:49:29","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":13655,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:49:29","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":11378,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:49:29","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":27989,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7715,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":29809,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":20244,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17032,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":15743,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10517,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":27418,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 12:53:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":11103,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:30","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":17401,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:30","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":35308,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:30","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":33962,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:30","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32832,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:57","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":40788,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:57","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12968,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:57","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4250,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 12:55:57","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":34260,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:19","func_code":"def fibonacci(n):\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n print(a)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":27230,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:19","func_code":"def countdown(num):\n print('calling countdown(' + str(num) + ')')\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16643,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:19","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":6307,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:19","func_code":"def index(str, letter):\n if letter in str:\n print(str.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":7326,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:47","func_code":"def index(str, letter):\n if letter in str:\n print(str.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":12087,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:47","func_code":"def fibonacci(n):\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n print(a)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30752,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:47","func_code":"def search(str, letter):\n if letter in str:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":3216,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:56:47","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39777,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:59:13","func_code":"def index(s, letter):\n if letter in s:\n print(str.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":10917,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:59:13","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41561,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:59:13","func_code":"def search(s, letter):\n if letter in s:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":41821,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 12:59:13","func_code":"def fibonacci(n):\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":5414,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 13:00:02","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26957,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 13:00:02","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":17830,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 13:00:02","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32063,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 13:00:02","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":139,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:00:10","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14366,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:00:10","func_code":"def index(s, letter):\n if letter in s:\n print(s.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":3163,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:00:10","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14757,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:00:10","func_code":"def search(s, letter):\n if letter in s:\n print(True)\n else:\n print(False)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":22080,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:01:16","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40751,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:01:16","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31963,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:01:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n else:\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":33984,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:01:16","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":19515,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:02:23","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":12658,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:02:23","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32977,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:02:23","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":36792,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:02:23","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":12812,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:25","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16982,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:25","func_code":"def search(s, letter):\n print(letter in s)","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":19511,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:25","func_code":"def index(s, letter):\n if letter in s:\n print(s.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":11544,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:25","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":27673,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:54","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23341,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:54","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12334,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:54","func_code":"def index(s, letter):\n if letter in s:\n print(s.index(letter))\n else:\n print(-1)","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":4034,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:02:54","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14309,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:08","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16069,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:08","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":7751,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:08","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":26723,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:08","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32269,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:23","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":41751,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:23","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29695,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:23","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":3432,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:03:23","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2013,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:45","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":822,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:45","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":19237,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:45","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n return num\n num -= 1\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4085,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:45","func_code":"def index(s, letter):\n if letter in s:\n return s.index(letter)\n else:\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":15680,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":29401,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":25711,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":32129,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14182,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def index(s, letter):\n if letter in s:\n return s.index(letter)\n else:\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":8799,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3727,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def index(s, letter):\n if letter in s:\n return s.index(letter)\n else:\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":37092,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:03:59","func_code":"def countdown(num):\n while num > 0:\n time.sleep(0.1)\n print(num)\n num -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27088,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:07:14","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":24836,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:07:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":28728,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:07:14","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":40851,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:07:14","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":30574,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:12:47","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20348,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:12:47","func_code":"def index(s, letter):\n if letter in s:\n return s.index(letter)\n else:\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":22129,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:12:47","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":29813,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:12:47","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":17181,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:17:56","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":11849,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:17:56","func_code":"def index(s, letter, num):\n if num == len(s):\n print(-1)\n return\n if s[num] == letter:\n print(num)\n return\n index(s, letter, num + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":6471,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:17:56","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32751,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:17:56","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":5632,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:18:28","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28407,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:18:28","func_code":"def index(s, letter, num):\n if num == len(s):\n return -1\n if s[num] == letter:\n return num\n index(s, letter, num + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":23340,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:18:28","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":25839,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:18:28","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":27014,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:19:18","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":25954,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:19:18","func_code":"def index(s, letter, num):\n if num == len(s):\n return -1\n if s[num] == letter:\n return num\n index(s, letter, num + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":35259,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:19:18","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":42224,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:19:18","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29867,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":20550,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def index(s, letter, num):\n if num == len(s):\n return -1\n if s[num] == letter:\n return num\n n = index(s, letter, num + 1)\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":10380,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":24071,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def index(s, letter, num):\n if num == len(s):\n return -1\n if s[num] == letter:\n return num\n n = index(s, letter, num + 1)\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":2314,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":19133,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n a, b = 1, 1\n for i in range(n - 1):\n a, b = b, a + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":33798,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36629,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":37276,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15027,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def index(s, letter, num):\n if num == len(s):\n return -1\n if s[num] == letter:\n return num\n n = index(s, letter, num + 1)\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":20945,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def search(s, letter):\n return letter in s","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9731,"user":"aaa0b462-c89e-49f8-8886-ec2961496a19","date":"2017-03-27 13:20:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n return\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21181,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:21:02","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":34758,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:21:02","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37888,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:21:02","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":25166,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:21:02","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":11696,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:10","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":6283,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:10","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":32804,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:10","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19072,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":8621,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:43","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38143,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:43","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":1149,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:43","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":18636,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:26:43","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":34657,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:27:14","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20630,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:27:14","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":24257,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:27:14","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":13441,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:27:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":24210,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:13","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33622,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:13","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5698,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:13","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":26703,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:55","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36804,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:55","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":22783,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:55","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":37906,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:28:55","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10004,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:09","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":4741,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:09","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":28067,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:09","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":17819,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:09","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":22512,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:32","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30673,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":3554,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:32","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":7576,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:29:32","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25014,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:05","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11416,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:05","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":27595,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:05","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":38922,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:05","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":35740,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":5974,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:33","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22124,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:33","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":18109,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:32:33","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":338,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:37:09","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":33976,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:37:09","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25170,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:37:09","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37997,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:37:09","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":33030,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:34","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":21506,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:34","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8691,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:34","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2384,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:34","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":12058,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9469,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":31805,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7381,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":24373,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38670,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":5402,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":16411,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:38:50","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":36744,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:39:22","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35742,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:39:22","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36411,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:39:22","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":5519,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:39:22","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":13494,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3402,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":36746,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21454,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26391,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16444,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":8855,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10327,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":35609,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":38626,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} @@ -3919,109 +3559,82 @@ {"submission_id":31321,"user":"3db8d602-4800-4b13-9482-3fb9643a4588","date":"2017-03-27 13:46:20","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":13963,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:52:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22183,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:52:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":11380,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:52:32","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6455,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:52:32","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n - i:\n x = i\n i = i + z\n z = x\n print(i)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":420,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:57:13","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":14324,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:57:13","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28448,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:57:13","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":8036,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:57:13","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n - i:\n x = i\n i = i + z\n z = x\n print(i)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18346,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:58:31","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2357,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:58:31","func_code":"def fibonacci(n):\n i = 1\n j = 0\n k = 0\n while i < n - i:\n k = i\n i = j + i\n j = k\n print(i)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":33156,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:58:31","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13486,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 13:58:31","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":16251,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:00:10","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n print(i)\n print(z)\n print(x)\n while i < n - i:\n x = i\n i = i + z\n z = x\n print(i)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":22417,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:00:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":2244,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:00:10","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":548,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:00:10","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3317,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:01:06","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":41465,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:01:06","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36511,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:01:06","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n - i:\n x = i\n i = i + z\n z = x\n print(i)\n print(z)\n print(x)\n print(i)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17699,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:01:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":16135,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:02:22","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34964,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:02:22","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n - i:\n x = i\n i = i + z\n z = x\n print(str(i))","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":37397,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:02:22","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15521,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:02:22","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":22337,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:05:47","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1658,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:05:47","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":32184,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:05:47","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":1067,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:05:47","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n:\n x = i\n i = i + z\n z = x\n print(i)\n print(z)\n print(x)\n print(str(i))","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":12367,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:18","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":10818,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:18","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5845,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:18","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n:\n x = i\n i = i + z\n z = x\n return i","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":33031,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:18","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":36417,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:49","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34548,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:49","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18310,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:49","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n:\n x = i\n i = i + z\n z = x\n return x","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":2135,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:07:49","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":17678,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:08:06","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":33024,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:08:06","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19599,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:08:06","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n while i < n:\n x = i\n i = i + z\n z = x\n return z","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":37965,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:08:06","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":5697,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:37","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return z\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":6649,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:37","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":28736,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:37","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":6735,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:37","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33823,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":19270,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":7767,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42277,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":42192,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":8121,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27229,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18716,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 14:09:53","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":3872,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:21:55","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":42420,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:21:55","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15453,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:21:55","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23669,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:21:55","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":19192,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16255,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26616,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4785,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":8659,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":18896,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":22860,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":27889,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":34464,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":36712,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":41254,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":34592,"user":"329aa290-1bfb-4cf3-82e0-ca13ee54db0f","date":"2017-03-27 15:24:26","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33548,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 15:39:28","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n c = letter[0]\n for ch in str:\n if ch == c:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":25625,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 15:39:28","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20182,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 15:39:28","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":6967,"user":"52070898-b2dd-4882-a9a9-65bd9d55725a","date":"2017-03-27 15:39:28","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31458,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:12","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":36230,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:12","func_code":"def countdown(num):\n while num > 1:\n print(num)\n num -= num\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33040,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:12","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2795,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:12","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n x = letter[0]\n for ch in str:\n if ch == x:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":35094,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:50","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n x = letter[0]\n for ch in str:\n if ch == x:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":26172,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:50","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":3853,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:50","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":6625,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:46:50","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num -= num\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19036,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":31871,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3828,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":38021,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26961,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n x = letter[0]\n for ch in str:\n if ch == x:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":41019,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":7976,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n x = letter[0]\n for ch in str:\n if ch == x:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":7835,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":14912,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":37163,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n num = num - 1\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20585,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def index(str, letter):\n i = 0\n if letter in str:\n x = letter[0]\n for ch in str:\n if ch == x:\n if str[i:i + len(letter)] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":14276,"user":"73cbe3a2-8a2b-4c7f-8b9e-a7db4b1d6f36","date":"2017-03-27 15:47:40","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":31442,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:33","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":35310,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:33","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":5039,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:33","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fin[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":1978,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:33","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9692,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":21256,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11627,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":3499,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16334,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":41298,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18460,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":36653,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 15:59:48","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":39614,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:03:44","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13204,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:03:44","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":17242,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:03:44","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15958,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:03:44","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} @@ -4029,170 +3642,118 @@ {"submission_id":20601,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":35273,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":21507,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32436,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12096,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":40351,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def search(ls, val):\n for item in ls:\n if item == val:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":6512,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":38578,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":41230,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38613,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33034,"user":"77d2e8c4-7a6c-4b2b-a2c4-40bb9700563f","date":"2017-03-27 16:04:47","func_code":"def index(str, letter, num):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":1583,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:43:38","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17162,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:43:38","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":28114,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:43:38","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29458,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:43:38","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":42482,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":3598,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":20525,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3639,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":3126,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":4471,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22237,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18899,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":23299,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":17314,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return True\n i += 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":22303,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def countdown(count):\n while count >= 1:\n print(count)\n time.sleep(0.1)\n count -= 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35291,"user":"df44f889-e513-4dcf-9230-82eca3e43f36","date":"2017-03-27 17:47:48","func_code":"def fibonacci(n):\n fib = [0, 1, 1]\n for f in range(2, n):\n fib.append(fib[-1] + fib[-2])\n return fib[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":15433,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:48:22","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":11630,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:58:08","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31313,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:58:08","func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('ok')\n else:\n print('false')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":25544,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:58:49","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33194,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:58:49","func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":21503,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:59:24","func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n print('True')\n else:\n print('False')\n return","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":26876,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 17:59:24","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20978,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:01:40","func_code":"def search(x, letter):\n if letter.isalpha() and type(x) == str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":23378,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:01:40","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":17054,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:07:11","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16003,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:07:11","func_code":"def search(x, letter):\n if type(x) == str and letter.isalpha():\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":23223,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:13:28","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":29334,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:13:28","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2395,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:20:31","func_code":"def search(string, letter):\n if letter in string:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":37112,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:20:31","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8179,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:20:31","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":30285,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:22:16","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9627,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:22:16","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":39308,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:22:16","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40371,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":29067,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":13617,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38681,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32555,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":26536,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38395,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":27548,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":5591,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n time.sleep(0.1)\n print(num - i)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19802,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":38183,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":8262,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-27 18:31:13","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":33219,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:10","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":21142,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:10","func_code":"def countdown(num):\n if unt(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39706,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:10","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":13081,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:49","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":20210,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:49","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26369,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 18:37:49","func_code":"def countdown(num):\n if unt(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":7679,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 18:59:49","func_code":"def countdown(num):\n i = num\n while i > 1:\n print(i)\n i = i - 1\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23400,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 19:00:13","func_code":"def countdown(num):\n i = num\n while i > 1:\n print(i)\n i = i - 1\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":40421,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 19:04:36","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":21878,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 19:05:27","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2249,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15189,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":17221,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":26131,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30719,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":21850,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":23215,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":25877,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 19:09:25","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28739,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4803,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34083,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":12459,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":36782,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20138,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":38715,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11736,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:17:14","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":41295,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:18:20","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16655,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:18:20","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":111,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:18:20","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":5052,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:18:20","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32487,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:22:59","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14578,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:22:59","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":40727,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:22:59","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21057,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:22:59","func_code":"def index(str, letter):\n if pos == len(str):\n return 0\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":41448,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:25","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1958,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:25","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":35067,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:25","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return 0\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":8321,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:25","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23936,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":41035,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":32172,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4637,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":13931,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":26361,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":22955,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":4381,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22924,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":23540,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19574,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":37126,"user":"8ed5ee6f-d6e7-4caf-8917-36bbe373ffac","date":"2017-03-27 19:23:44","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":1192,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":10832,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":37695,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2598,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":14843,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26168,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":30801,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":38416,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17160,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":5933,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":39694,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27877,"user":"41abe035-c2cd-41c3-ba39-497868b0334d","date":"2017-03-27 19:42:23","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":34888,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:03:37","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31099,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:03:37","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":28318,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:09:32","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21066,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:09:32","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":35579,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:09:32","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":37666,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:10:28","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":2301,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:10:28","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":2726,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:10:28","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23485,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:07","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return True\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":38774,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:07","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":41787,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:07","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":30438,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:07","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":28535,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:25","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11993,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:25","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":21641,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:25","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16574,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:20:25","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return True\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":38484,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:02","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23499,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:02","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":24141,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:02","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14317,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:02","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32290,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:22:36","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17945,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:22:36","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":15319,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:22:36","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":2743,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:22:36","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i < n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":8412,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3480,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":1790,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3451,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":38610,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":17157,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":28303,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def countdown(num):\n if num > 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n countdown(num)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":7365,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":31418,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":12745,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":3470,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9711,"user":"89186303-b7a8-4f4c-9627-06ba24e03bbb","date":"2017-03-27 21:22:53","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":37288,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:23:41","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42299,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:23:41","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":24390,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:23:41","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":12510,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:23:41","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":23425,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36605,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":42196,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":26652,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35880,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":32851,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":8353,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13003,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":7423,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14568,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -4200,28 +3761,20 @@ {"submission_id":25095,"user":"46432289-e1c4-49da-8392-8dfa0d08a950","date":"2017-03-27 21:24:37","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":597,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:26:52","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":30676,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:26:52","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":28482,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:26:52","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19423,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:26:52","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":2161,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:27:54","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":30889,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:27:54","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":41572,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:27:54","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35988,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:27:54","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":12199,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:36:39","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":18357,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:36:39","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29788,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:36:39","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":15394,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:36:39","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":29106,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":39369,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":39524,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":31172,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15464,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":9081,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def fibonacci(n):\n if n == 0:\n return '0'\n elif n == 1:\n return '1'\n else:\n n1 = 1\n n2 = 0\n i = 2\n while i <= n:\n sum1 = n1 + n2\n n2 = n1\n n1 = sum1\n i = i + 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14336,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23379,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:40:57","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n i = i + 1\n if letter in str:\n return i\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":2538,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":33564,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14480,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":22866,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def countdown(num):\n i = num\n while i >= 1:\n print(i)\n time.sleep(0.1)\n i = i - 1\n print('LIFT OFF!')\n return i","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23644,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":5028,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":3656,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} @@ -4231,50 +3784,38 @@ {"submission_id":17156,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def search(str, letter):\n if letter in str:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":40865,"user":"80965c2d-45d9-440d-b3c3-403c112145e9","date":"2017-03-27 21:41:04","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":3365,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":34465,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12318,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4145,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":6349,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17996,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":38777,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":41079,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:42:15","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":36952,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":17427,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":9551,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25578,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":11027,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":20864,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":25391,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23488,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":8801,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25082,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3182,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":1798,"user":"01bd5698-d7fa-47db-8dec-ca4be1284feb","date":"2017-03-27 21:46:31","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":28666,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:17","func_code":"def search(str, letter):\n if len(str) == 0:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":38034,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:17","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22356,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:17","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":34329,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:17","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":17130,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20248,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":25395,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":26638,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def search(str, letter):\n if len(str) == 0:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":23747,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":12580,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2583,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def search(str, letter):\n if len(str) == 0:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":18828,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":3244,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def search(str, letter):\n if len(str) == 0:\n return 'False'\n elif str[0] == letter:\n return 'True'\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":8596,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":23275,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":21120,"user":"ead2ade9-6c50-44a4-98f3-1d781d45a0f5","date":"2017-03-27 21:48:38","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":21213,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:28","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":22091,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:28","func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":35373,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:28","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(1)\n countdown(int(a) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25375,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:28","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":39358,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:45","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":1196,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:45","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":5231,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:45","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34667,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:50:45","func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":8554,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:06","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":33317,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:06","func_code":"def search(str, letter):\n for item in str:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":13808,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:06","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":36914,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:06","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -4287,262 +3828,182 @@ {"submission_id":14918,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":24860,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26488,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":5508,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":5015,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":20089,"user":"08b41ad4-ecde-43b9-b629-6ff77ac435fc","date":"2017-03-27 21:51:53","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":15579,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:01:18","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":30851,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:02:56","func_code":"def search(str, letter):\n if letter in str:\n print('True')\n else:\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":4003,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:02:56","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":153,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:03:24","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12299,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:03:24","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":25300,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:05:42","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":6826,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:05:42","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, i - 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":20562,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:05:42","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":36662,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:05:42","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num - 1))","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":31305,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:01","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num - 1))","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22079,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:01","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":8669,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:01","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, -1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":16209,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:01","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":37711,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:54","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":10953,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:54","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29723,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:54","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, i - 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":21654,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:06:54","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":9679,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:07:36","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":776,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:07:36","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23787,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:07:36","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, -1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":15064,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:07:36","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4939,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:10:20","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, -1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":13834,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:10:20","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6867,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:10:20","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":10856,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:14:45","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":13335,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:14:45","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i += 1\n return index(str, letter, -1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":34443,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:14:45","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12864,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:14:45","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":35204,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:17:57","func_code":"def countdown(number):\n while number >= 1:\n time.sleep(0.1)\n print(number)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":7147,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:18:37","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22277,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:18:37","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":7474,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:18:37","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":4140,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:18:56","func_code":"def countdown(num):\n while number >= 1:\n time.sleep(0.1)\n print(number)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":23112,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:19:27","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(number)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":24538,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:20:06","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28210,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:20:18","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":10451,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:20:18","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23116,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:20:18","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n i += 1\n elif str[pos] == letter:\n return pos\n else:\n return inddex(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":13194,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:20:18","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":27087,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:20:24","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":16190,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26882,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14154,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":16951,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6205,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n i += 1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":42169,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n i += 1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":33406,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4137,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def search(str, letter):\n for n in str:\n if n == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":31177,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30118,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":16841,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20720,"user":"2bcea2a1-925b-4db5-8403-2d8af9d0bb46","date":"2017-03-27 23:21:24","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n i += 1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":28045,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:27:19","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":29834,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:27:19","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n print('True')\n i = i + 1\n print('False')","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":4589,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:28:10","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":4946,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:28:10","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":42435,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:30:02","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":38595,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:30:02","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":15500,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:30:02","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1727,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:31:33","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":37486,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:31:33","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":24323,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:31:33","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":42139,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":36738,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":23914,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":32762,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":10069,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":24925,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11618,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def search(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return 'True'\n i = i + 1\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":27238,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":2186,"user":"8b835803-8982-477e-b017-9d6fc24a47d0","date":"2017-03-27 23:32:12","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i = i + 1\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":32064,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:38:40","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":5277,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:38:40","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":3335,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:38:40","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n while fib[n]:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":28766,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:38:40","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":34503,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:42:52","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40308,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:42:52","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n while fib[n]:\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":8106,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:42:52","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":36300,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:42:52","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":15884,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:22","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":1569,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:22","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":32951,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:22","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = 0\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":7768,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:22","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":4330,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":33707,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":7019,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":5903,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":27961,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22793,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":10147,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":29222,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:45:45","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27946,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":27357,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":39806,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":8458,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":27195,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27063,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":8248,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":32605,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def index(str, letter):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":8088,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":39036,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":20235,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":1513,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-27 23:51:36","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":42215,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:05:03","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12871,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:05:03","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":37490,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:05:03","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":16836,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:05:03","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":4270,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:08:13","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17060,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:08:13","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":11393,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:08:13","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":41817,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:08:13","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')\n countdown()","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":31381,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:09:50","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":4567,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:09:50","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":29639,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:09:50","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')\n countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10737,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:09:50","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":11169,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:11:33","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12034,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:11:33","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":19209,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:11:33","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":14328,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:11:33","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30725,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:15:22","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":29212,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:15:22","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":10257,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:15:22","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":41998,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:15:22","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')\n countdown(num)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":2462,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22324,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":2746,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":41302,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":6176,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19748,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30336,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def search(str, letter):\n if letter in str:\n return 'True'\n else:\n return 'False'\n search()","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":1217,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def countdown(num):\n import time\n i = 0\n while i < num:\n print(num - i)\n time.sleep(0.1)\n i = i + 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18206,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":38251,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def fibonacci(n):\n fib = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n if n == 0:\n num = fib[0]\n elif n == 1:\n num = fib[1]\n else:\n num = fib[n - 1] + fib[n - 2]\n return num\n fibonacci()","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":12395,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":28822,"user":"2b978ca4-e1a6-4660-9bf9-39da09a92282","date":"2017-03-28 00:17:14","func_code":"def index(str, letter, num):\n if letter in str:\n pos = str.index(letter)\n return pos\n else:\n return '-1'\n index()","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":6871,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":492,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":32171,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36577,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def index(string, letter):\n i = 0\n while i < len(string):\n if letter == string[i]:\n return i\n i += 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":5997,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":30522,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def countdown(num):\n while num >= 1:\n time.sleep(0.1)\n print(num)\n num = num - 1\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":10945,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"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'","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":4393,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:44:20","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":8311,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19196,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":1597,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":36099,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":14012,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":20263,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":19470,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":16352,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def search(string, letter):\n if len(string) == 0:\n return 'False'\n elif string[0] == letter:\n return 'True'\n else:\n return search(string[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":21952,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def countdown(num):\n if num == 0:\n time.sleep(0.1)\n print('LIFT OFF!')\n else:\n time.sleep(0.1)\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":1669,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":30563,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def index(string, letter, position):\n if position == len(string):\n return -1\n elif string[position] == letter:\n return position\n else:\n return index(string, letter, position + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":25893,"user":"106d34e0-d03c-42ab-a67a-b88759ff6307","date":"2017-03-28 01:45:07","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":41358,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":35481,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":491,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":6518,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":12509,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17069,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":37764,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":22009,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:09:26","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":20531,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":7107,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":26688,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":18512,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":36707,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":31795,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":10816,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":29363,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def fibonacci(n):\n i = 1\n z = 0\n x = 0\n if n > 0:\n while i < n:\n x = i\n i = i + z\n z = x\n return i\n else:\n return 0","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":27103,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":23817,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":38804,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12749,"user":"7c96bda5-98ec-4cff-a3e4-0118a7fafe5d","date":"2017-03-28 04:10:28","func_code":"def index(str, letter, x):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":32022,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:00:54","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":551,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:00:54","func_code":"def countdown(num):\n import datetime\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":9409,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:03:21","func_code":"def countdown(num):\n import time\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":15667,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:03:21","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":16648,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:10:34","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n else:\n i = i + 1\n if i == len(str) and str[i] != letter:\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":5197,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:10:34","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":1020,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:10:34","func_code":"def countdown(num):\n import time\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34886,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n else:\n i = i + 1\n if i == len(str):\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":10062,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n else:\n i = i + 1\n if i == len(str):\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":15399,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def countdown(num):\n import time\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8989,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":25420,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def countdown(num):\n import time\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26778,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":341,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34279,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n else:\n i = i + 1\n if i == len(str):\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":360,"user":"0b0c54f1-c900-465f-a33a-5c22b0497dc4","date":"2017-03-28 08:11:16","func_code":"def countdown(num):\n import time\n while num != 0:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":14091,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3969,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32962,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":12966,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":23846,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":14424,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17522,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":19037,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":20459,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":4068,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":15564,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def countdown(num):\n if int(num) == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(int(num) - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16508,"user":"e61abe18-8ddf-4e11-ab3b-38a68f156ea0","date":"2017-03-28 08:40:32","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26614,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:17:34","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":22889,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:22:43","func_code":"def countdown(num):\n time.sleep(0.1)\n if num > 0:\n print(num)\n countdown(num - 1)\n time.sleep(0.1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18578,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:22:43","func_code":"def index(steve, letter):\n return steve.find(letter)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":40063,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:22:43","func_code":"def fibonacci(n):\n l = []\n if n <= 1:\n return n\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":19808,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:22:43","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32160,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:24:22","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":40004,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:24:22","func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('False')\n elif s[pos] == letter:\n print('True')\n else:\n return search(s, letter, pos + 1)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":35774,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:29:31","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":11828,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:29:31","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":12731,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def fibonacci(n):\n l = []\n if n <= 1:\n return n\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":8152,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def countdown(num):\n time.sleep(0.1)\n if num > 0:\n print(num)\n countdown(num - 1)\n time.sleep(0.1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":29691,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def countdown(num):\n time.sleep(0.1)\n if num > 0:\n print(num)\n countdown(num - 1)\n time.sleep(0.1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6773,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def index(steve, letter, n):\n if letter != steve[n]:\n index(steve, letter, n + 1)\n else:\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":2111,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def fibonacci(n):\n l = []\n if n <= 1:\n return n\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":33236,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":18638,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def fibonacci(n):\n l = []\n if n <= 1:\n return n\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":26066,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def countdown(num):\n time.sleep(0.1)\n if num > 0:\n print(num)\n countdown(num - 1)\n time.sleep(0.1)\n else:\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20293,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34920,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def index(steve, letter, n):\n if letter != steve[n]:\n index(steve, letter, n + 1)\n else:\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":28349,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def index(steve, letter, n):\n if letter != steve[n]:\n index(steve, letter, n + 1)\n else:\n return n","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":11279,"user":"0cf3795f-3d4f-4c32-b52b-4a8e4a33e09a","date":"2017-03-28 09:30:24","func_code":"def search(steve, letter):\n if letter in steve:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34000,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:34:41","func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('-1')\n elif s[pos] == letter:\n print(pos)\n else:\n return search(s, letter, pos + 1)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":34958,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:34:41","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":13353,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:35:20","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6569,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:35:20","func_code":"def search(s, letter, pos):\n if pos == len(s):\n print('-1')\n elif s[pos] == letter:\n return pos\n else:\n return search(s, letter, pos + 1)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":10961,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:36:39","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8338,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:36:39","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":17227,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:36:39","func_code":"def index(s, letter, pos):\n if pos == len(s):\n print('-1')\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":24403,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:37:21","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":36117,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:37:21","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":918,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:37:21","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":39092,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:42:24","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":1273,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:42:24","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":2473,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:42:24","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":40665,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:42:24","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8569,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:48:14","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":3200,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:48:14","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":20626,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:48:14","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n sum1 = a + b\n a = b\n b = sum1\n i += 1\n return sum1","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":9461,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:48:14","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18523,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":30218,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":20011,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":41888,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":15259,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":20873,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":9175,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6667,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} -{"submission_id":4344,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37549,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def index(s, letter, pos):\n if pos == len(s):\n return '-1'\n elif s[pos] == letter:\n return pos\n else:\n return index(s, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":21637,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":38594,"user":"44c97823-e1ac-4434-b296-79fbeb51fa5a","date":"2017-03-28 09:55:03","func_code":"def search(s, letter):\n if len(s) == 0:\n return 'False'\n elif s[0] == letter:\n return 'True'\n else:\n return search(s[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":33519,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 21:41:41","func_code":"def count_letters(s):\n if not s:\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":6653,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 21:41:41","func_code":"def count_letters(s):\n if not s:\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -4553,8 +4014,8 @@ {"submission_id":35289,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 21:42:14","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tail_min = minimum(l[1:])\n return l[0] if l[0] < tail_min else tail_min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":29802,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:24","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tail_min = minimum(l[1:])\n return l[0] if l[0] < tail_min else tail_min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":20232,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:24","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tail_min = minimum(l[1:])\n return l[0] if l[0] < tail_min else tail_min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":27068,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:34","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":27604,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:34","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":27068,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:34","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":27604,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:34","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":30650,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:47","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":41848,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:25:47","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":6503,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-03-29 22:26:02","func_code":"def reverse_list(l):\n if l == []:\n return []\n return reverse_list(l[1:]) + [l[0]]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -4567,38 +4028,29 @@ {"submission_id":24827,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":11365,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if str[i] == letter:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":5676,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":7322,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":18205,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":14191,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":13599,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3076,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:28:27","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":11809,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":34322,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":4786,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":42436,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":26601,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":36181,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def fibonacci(n):\n a = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n return a[n]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":24861,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def countdown(num):\n if num == 1:\n print(num)\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":26899,"user":"662f087e-9c5b-47c6-8644-ba7525600aac","date":"2017-04-01 16:29:59","func_code":"def search(str, letter):\n for item in str:\n if item == letter:\n return True\n return False","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":8021,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":6864,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":32298,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n fibN_2 = 0\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2745,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n fibN_2 = 0\n fibN_1 = 1\n i = 2\n while i <= n:\n fibN = fibN_2 + fibN_1\n fibN_2 = fibN_1\n fibN_1 = fibN\n i = i + 1\n return fibN","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":21492,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def search(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return True\n i = i + 1\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":26693,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} {"submission_id":18096,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def index(str, letter):\n i = 0\n while i < len(str):\n if letter == str[i]:\n return i\n i = i + 1\n return -1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":true} -{"submission_id":9822,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:08","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13054,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":8985,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":21306,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":39831,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":41444,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":34417,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":28819,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":27185,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":33397,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":25895,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":14814,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":16929,"user":"1bdd9f47-4a26-4f0c-ae56-413531e3f59b","date":"2017-04-04 10:53:21","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":9444,"user":"11236dde-1cd4-4a17-af9c-b06843cf22cc","date":"2017-04-05 22:06:03","func_code":"def append2list(l1, l2=[]):\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":true} {"submission_id":12495,"user":"11236dde-1cd4-4a17-af9c-b06843cf22cc","date":"2017-04-05 22:08:24","func_code":"def append2list(l1):\n l2 = []\n for i in l1:\n l2.append(i)\n return l2","func_name":"append2list","assignment_id":"append2list","academic_year":2016,"module":"ca117","description":"Appends elements of a list l1 at the end of the list l2. If l2 not supplied default to empty list.","test":"assert append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866],[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866])==[-16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866, -16276, 117, -12248, -4743, -25, -6030600119498841921, -8866, -12248, -4743, -25, -6030600119498841921, -8866] and append2list([-21267],[-21267, -21267])==[-21267, -21267, -21267]","correct":false} @@ -4625,8 +4077,8 @@ {"submission_id":27785,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-04-16 18:51:33","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":4601,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-04-17 15:01:35","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} {"submission_id":7808,"user":"b46a0d8e-c049-41aa-b896-956cda3c8d13","date":"2017-04-17 15:01:35","func_code":"def overlap(x1=0, y1=0, r1=1, x2=0, y2=0, r2=1):\n return ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5 < r1 + r2","func_name":"overlap","assignment_id":"overlap","academic_year":2016,"module":"ca117","description":"Test if two circles overlap.","test":"assert overlap(12,-6058,21436,-3483096651887624530,24,31017)==False and overlap(-30592,-26624,-11905,1,2,30134)==False and overlap(0,0,0,0,0,0)==False and overlap(5128,-8635,-28938,25,-31295,-21637807133189218411179185993653430151)==False and overlap(-16348,-2218,2871,-15155,-83,24475)==True and overlap(4807,1216206119,8753907074291481720,-19844,-26061,-15639)==True and overlap(1348593950,19232,-10923,20,2259187900768772679,-5343103208648864320)==False and overlap(8410739119977124611,9995,83,8410739119977124611,19348,21604)==True","correct":true} -{"submission_id":17969,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:17:40","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":2958,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:17:40","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":17969,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:17:40","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":2958,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:17:40","func_code":"def power(m, n):\n if not n:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25667,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:18:11","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tail_min = minimum(l[1:])\n return l[0] if l[0] < tail_min else tail_min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":37167,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:18:11","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tail_min = minimum(l[1:])\n return l[0] if l[0] < tail_min else tail_min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":24386,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:18:31","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n tail_max = maximum(l[1:])\n return l[0] if l[0] > tail_max else tail_max","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -4643,48 +4095,48 @@ {"submission_id":12690,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:20:37","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n min_index = i\n j = i + 1\n while j < len(A):\n if A[j] < A[min_index]:\n min_index = j\n j += 1\n A[i], A[min_index] = A[min_index], A[i]\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":28887,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:20:37","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n min_index = i\n j = i + 1\n while j < len(A):\n if A[j] < A[min_index]:\n min_index = j\n j += 1\n A[i], A[min_index] = A[min_index], A[i]\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":33852,"user":"b1593687-e1b6-4969-bf98-9b229efc6797","date":"2017-04-21 09:20:37","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n min_index = i\n j = i + 1\n while j < len(A):\n if A[j] < A[min_index]:\n min_index = j\n j += 1\n A[i], A[min_index] = A[min_index], A[i]\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":25560,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:11:44","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":23762,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:12:39","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":25560,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:11:44","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":23762,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:12:39","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25619,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-21 11:14:52","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":32925,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-21 11:15:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":3728,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:16:00","func_code":"def minimum(l):\n return l.sort()[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":2171,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:16:45","func_code":"def power(n):\n if n == 0:\n return 0\n else:\n return n ** power(n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26047,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:17:25","func_code":"def power(m, n):\n if n == 0:\n return 0\n else:\n return m ** power(n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":2171,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:16:45","func_code":"def power(n):\n if n == 0:\n return 0\n else:\n return n ** power(n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":26047,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:17:25","func_code":"def power(m, n):\n if n == 0:\n return 0\n else:\n return m ** power(n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":29316,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-21 11:18:49","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} -{"submission_id":13887,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:20:07","func_code":"def power(m, n):\n if n == 0:\n return 0\n else:\n return n ** power(m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30492,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:20:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":10087,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:20:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":13887,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:20:07","func_code":"def power(m, n):\n if n == 0:\n return 0\n else:\n return n ** power(m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":30492,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:20:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":10087,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:20:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":39371,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:20:22","func_code":"def minimum(l):\n return l.sort()[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":27678,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:21:05","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":3812,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:21:05","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33872,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:21:50","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":27678,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:21:05","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":3812,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:21:05","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":33872,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:21:50","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":13863,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:21:51","func_code":"def minimum(l):\n l = l.sort()\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":40678,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:23:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":38602,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:23:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":40678,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:23:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":38602,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:23:21","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":193,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:24:33","func_code":"def minimum(l):\n l.sort()\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26437,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:24:33","func_code":"def minimum(l):\n l.sort()\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":35874,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:24:35","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":2964,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:24:35","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":35874,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:24:35","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":2964,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:24:35","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":26768,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:25:08","func_code":"def minimum(l):\n A = 'null'\n lowest = A\n for c in l:\n if lowest == A:\n lowest = c\n elif c < lowest:\n lowest = c\n return lowest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":13731,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:25:08","func_code":"def minimum(l):\n A = 'null'\n lowest = A\n for c in l:\n if lowest == A:\n lowest = c\n elif c < lowest:\n lowest = c\n return lowest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":1736,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:25:16","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":1736,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:25:16","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":21446,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:25:24","func_code":"def maximum(l):\n return l.sort()\n l[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":41261,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:25:48","func_code":"def maximum(l):\n l.sort()\n return l[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":21689,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:25:48","func_code":"def maximum(l):\n l.sort()\n return l[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":15763,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:25:53","func_code":"def maximum(l):\n A = 'null'\n highest = A\n for c in l:\n if maximum == A:\n maximum = c\n elif c > maximum:\n maximum = c\n return maximum","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":7094,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:10","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":7094,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:10","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":38717,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:27:11","func_code":"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","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":37701,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:27:11","func_code":"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","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":23807,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:30","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":1709,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:30","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":23807,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:30","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":1709,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:27:30","func_code":"def power(m, n):\n if m == 0:\n return 0\n elif m == 1:\n return 1\n elif n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":36106,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:28:58","func_code":"def count_letters(s):\n str_len = 0\n for c in s:\n str_len += 1\n return str_len","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":15053,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:28:58","func_code":"def count_letters(s):\n str_len = 0\n for c in s:\n str_len += 1\n return str_len","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":24980,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:22","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":7813,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:22","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":24980,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:22","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":7813,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:22","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":5923,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:29:29","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n mini = minimum(l[1:])\n if l[0] < mini:\n return l[0]\n else:\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":42205,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:29:29","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n mini = minimum(l[1:])\n if l[0] < mini:\n return l[0]\n else:\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":21615,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:29:42","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19138,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:29:42","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":21615,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:29:42","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":19138,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:29:42","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":38208,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:44","func_code":"def minimum(a):\n tmp = a[0]\n for i in a:\n if i < tmp:\n tmp = i\n return tmp","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":10228,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-21 11:29:44","func_code":"def minimum(a):\n tmp = a[0]\n for i in a:\n if i < tmp:\n tmp = i\n return tmp","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":13560,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:30:00","func_code":"def reverse_list(l):\n if l == []:\n return []\n temp = reverse_list(l[1:])\n temp.append(l[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -4705,31 +4157,31 @@ {"submission_id":2379,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:38:21","func_code":"def maximum(l):\n if not l:\n return l\n if len(l) == 1:\n return l[0]\n tail_max = maximum(l[1:])\n if tail_max == []:\n return l[0]\n return l[0] if l[0] > tail_max else tail_max","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":31180,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:39:25","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n maxi = maximum(l[1:])\n if l[0] > maxi:\n return l[0]\n else:\n return maxi","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":9856,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:39:25","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n maxi = maximum(l[1:])\n if l[0] > maxi:\n return l[0]\n else:\n return maxi","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":29495,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:39:46","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":35300,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:39:46","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":29495,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:39:46","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":35300,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:39:46","func_code":"def power(m, n):\n if n == 0:\n return 1\n if n == 1:\n return m\n if m == 0:\n return 0\n if m == 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":3403,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:41:18","func_code":"def count_letters(string):\n if not string:\n return 0\n return count_letters(string[1:] + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":6021,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:42:00","func_code":"def reverse_list(l):\n new_list = []\n for c in l:\n new_list.append(l.pop())\n new_list.append(l.pop())\n return new_list","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":2611,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:42:04","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n elif minimum(l[0:len(l)]) < minimum(l[len(l) + 1:]):\n return minimum(l[0:len(l)])\n else:\n return minimum(l[len(l) + 1:])","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":7281,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:43:33","func_code":"def power(m, n):\n while n != 0:\n m *= m\n n -= 1\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":7281,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:43:33","func_code":"def power(m, n):\n while n != 0:\n m *= m\n n -= 1\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":36100,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:44:05","func_code":"def reverse_list(l):\n new_list = []\n i = 0\n while len(l) > i:\n new_list.append(l.pop())\n i += 1\n return new_list","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":12224,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:45:31","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n mini = minimum(l[1:])\n if l[0] < mini:\n return l[0]\n else:\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":2067,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:45:31","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n mini = minimum(l[1:])\n if l[0] < mini:\n return l[0]\n else:\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":288,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:45:34","func_code":"def power(m, n):\n while n != 0:\n m = m * m\n n = n - 1\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":288,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:45:34","func_code":"def power(m, n):\n while n != 0:\n m = m * m\n n = n - 1\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":8131,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:46:09","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n smallest = minimum(l[1:])\n if l[0] < smallest:\n return l[0]\n else:\n return smallest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":6123,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:46:09","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n smallest = minimum(l[1:])\n if l[0] < smallest:\n return l[0]\n else:\n return smallest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":36447,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:46:12","func_code":"def power(m, n):\n while n > 0:\n m = m * m\n n = n - 1\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":36447,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:46:12","func_code":"def power(m, n):\n while n > 0:\n m = m * m\n n = n - 1\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":10403,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:46:13","func_code":"def count_letters(string):\n if not string:\n return 0\n return count_letters(string[1:]) + 1","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":30977,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:46:13","func_code":"def count_letters(string):\n if not string:\n return 0\n return count_letters(string[1:]) + 1","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":11662,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 11:46:17","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26010,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 11:46:17","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":18456,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":29722,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":28347,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":11662,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 11:46:17","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":26010,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 11:46:17","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":18456,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":29722,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":28347,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-21 11:46:23","func_code":"def power(m, n, flag=True, m1=None):\n if not n:\n return 1\n if flag:\n m1 = m\n if n == 1:\n return m\n return power(m * m1, n - 1, False, m1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":8495,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:46:34","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m = maximum(l[1:])\n if l[0] > m:\n return l[0]\n else:\n return m","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":21490,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:46:34","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n m = maximum(l[1:])\n if l[0] > m:\n return l[0]\n else:\n return m","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":12001,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:47:00","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":2777,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 11:47:00","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":27745,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:47:02","func_code":"def power(m, n):\n while n > 0:\n m = m * m\n n = n - 1\n print(n)\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":27745,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:47:02","func_code":"def power(m, n):\n while n > 0:\n m = m * m\n n = n - 1\n print(n)\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":1386,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:48:11","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n smaller = minimum(l[1:])\n if l[0] < smaller:\n return l[0]\n return smaller","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":25328,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 11:48:11","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n smaller = minimum(l[1:])\n if l[0] < smaller:\n return l[0]\n return smaller","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":16236,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:48:15","func_code":"def count_letters(s):\n if len(s) == 1:\n return 1\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} @@ -4741,7 +4193,7 @@ {"submission_id":4921,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:51:15","func_code":"def reverse_list(l):\n if len(l) == 1:\n return l\n return l[-1].extend(reverse_list(l[:-1]))","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":18538,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:51:25","func_code":"def reverse_list(l):\n if len(l) == 0:\n return l\n return reverse_list(l[1:]) + [l[0]]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":17553,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:51:25","func_code":"def reverse_list(l):\n if len(l) == 0:\n return l\n return reverse_list(l[1:]) + [l[0]]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":28964,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:51:42","func_code":"def power(m, n):\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":28964,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:51:42","func_code":"def power(m, n):\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":40886,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:51:55","func_code":"def reverse_list(l):\n if len(l) == 1:\n return l\n return [l[-1]].extend(reverse_list(l[:-1]))","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":11998,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:52:12","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n biggest = maximum(l[1:])\n if l[0] > biggest:\n return l[0]\n else:\n return biggest","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":6934,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 11:52:12","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n biggest = maximum(l[1:])\n if l[0] > biggest:\n return l[0]\n else:\n return biggest","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -4756,23 +4208,23 @@ {"submission_id":29204,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:52:49","func_code":"def minimum(lst):\n if len(lst) == 1:\n return lst[0]\n mini = minimum(lst[1:])\n if lst[0] < mini:\n return lst[0]\n else:\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":21558,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:52:55","func_code":"def reverse_list(a):\n if a == []:\n return []\n temp = reverse_list(a[1:])\n temp.append(a[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":28461,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:52:55","func_code":"def reverse_list(a):\n if a == []:\n return []\n temp = reverse_list(a[1:])\n temp.append(a[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":27383,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:53:00","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":4813,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:53:00","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":27383,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:53:00","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":4813,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:53:00","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":39520,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:53:06","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34373,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:53:06","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":7922,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:53:29","func_code":"def reverse_list(l):\n if len(l) == 1 or not l:\n return l\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":32066,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:53:29","func_code":"def reverse_list(l):\n if len(l) == 1 or not l:\n return l\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":42297,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:54:00","func_code":"def reverse_list(ls):\n return ls.reverse()","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} -{"submission_id":20480,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:54:01","func_code":"def power(m, n):\n if n == 0:\n return 0\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":20480,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:54:01","func_code":"def power(m, n):\n if n == 0:\n return 0\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":7494,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-21 11:54:30","func_code":"def selectionsort(a):\n start = time.time()\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":12434,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-21 11:54:30","func_code":"def selectionsort(a):\n start = time.time()\n i = 0\n while i < len(a):\n j = i + 1\n p = i\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} -{"submission_id":116,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:55:06","func_code":"def power(m, n):\n if m == m ** n:\n return m\n else:\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":116,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:55:06","func_code":"def power(m, n):\n if m == m ** n:\n return m\n else:\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":31415,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:55:39","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":23777,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 11:55:39","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":42175,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:56:00","func_code":"def power(m, n):\n if m == 1:\n return m\n else:\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":42175,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 11:56:00","func_code":"def power(m, n):\n if m == 1:\n return m\n else:\n m = m ** n\n return power(m, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":28460,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 11:56:23","func_code":"def reverse_list(l):\n if len(l) == 1:\n return l\n else:\n return reverse_list(l[1:]).append(l[0])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} -{"submission_id":5043,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:56:37","func_code":"def power(m, n):\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":31378,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:57:42","func_code":"def power(m, n):\n if n == 0:\n return m\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":5043,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:56:37","func_code":"def power(m, n):\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":31378,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 11:57:42","func_code":"def power(m, n):\n if n == 0:\n return m\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":23199,"user":"932dfe81-cd49-4d41-8b87-456f3246e781","date":"2017-04-21 11:57:45","func_code":"def fibonacci(n):\n return n * fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":41796,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:58:00","func_code":"def reverse_list(ls):\n ls.reverse()\n return ls","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":27605,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 11:58:00","func_code":"def reverse_list(ls):\n ls.reverse()\n return ls","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -4783,10 +4235,10 @@ {"submission_id":5709,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 11:59:33","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":28874,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:00:09","func_code":"def minimum(l):\n smallest = l[0]\n for e in l:\n if e < smallest:\n smallest = e\n return smallest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":35006,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:00:09","func_code":"def minimum(l):\n smallest = l[0]\n for e in l:\n if e < smallest:\n smallest = e\n return smallest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":24216,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:00:30","func_code":"def power(m, n):\n if m == 0:\n return 1\n else:\n m = m ** n\n return power(m - 1, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":24216,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:00:30","func_code":"def power(m, n):\n if m == 0:\n return 1\n else:\n m = m ** n\n return power(m - 1, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":34978,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 12:00:32","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":16612,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 12:00:32","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":20343,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:01:14","func_code":"def power(m, n):\n if m == 0:\n return 1\n else:\n m = m ** n\n return n * power(m - 1, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":20343,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:01:14","func_code":"def power(m, n):\n if m == 0:\n return 1\n else:\n m = m ** n\n return n * power(m - 1, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":30697,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:01:33","func_code":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e < biggest:\n biggest = e\n return biggest","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":13040,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 12:01:33","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":28113,"user":"9550e418-a019-49c2-a2e9-8322a300fb6f","date":"2017-04-21 12:01:33","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -4794,12 +4246,12 @@ {"submission_id":36084,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 12:01:55","func_code":"def reverse_list(a):\n if a == []:\n return []\n tmp = reverse_list(a[1:])\n tmp.append(a[0])\n return tmp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":35678,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:01:56","func_code":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e > biggest:\n biggest = e\n return biggest","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":23182,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:01:56","func_code":"def maximum(l):\n biggest = l[0]\n for e in l:\n if e > biggest:\n biggest = e\n return biggest","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":36940,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:02:10","func_code":"def power(m, n):\n return power(m - 1, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":42269,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 12:03:28","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33275,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 12:03:28","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":36940,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:02:10","func_code":"def power(m, n):\n return power(m - 1, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":42269,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 12:03:28","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":33275,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-21 12:03:28","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":13498,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 12:03:54","func_code":"def reverse_list(l):\n if len(l) == 1:\n return l\n else:\n return reverse_list(l[1:]).append(l[0])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} -{"submission_id":25421,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:04:51","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":40486,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:04:51","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":25421,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:04:51","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":40486,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:04:51","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":15580,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 12:05:45","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n if n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":11369,"user":"b13f3dba-a06b-4528-a4d8-c2ee1a5bb34d","date":"2017-04-21 12:05:45","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n if n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":875,"user":"0473ca8a-3862-4046-a34c-16eb754fdfff","date":"2017-04-21 12:06:07","func_code":"def reverse_list(l):\n if len(l) == 1:\n return list(l)\n else:\n return reverse_list(l[1:]).append(l[0])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} @@ -4856,9 +4308,9 @@ {"submission_id":7763,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 12:23:00","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":27470,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:23:13","func_code":"def reverse_list(l):\n if not l:\n return []\n return [l[0]].append(reverse_list(l[1:]))","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":26061,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:23:26","func_code":"def reverse_list(a):\n if a == []:\n return a\n else:\n return reverse_list(a[1:]).append(a[0])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} -{"submission_id":4855,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":31548,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34094,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":4855,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":31548,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":34094,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-21 12:24:14","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":33000,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:24:34","func_code":"def reverse_list(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[-i - 1])\n i += 1\n return b","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":11002,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:24:34","func_code":"def reverse_list(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[-i - 1])\n i += 1\n return b","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":27219,"user":"72de96bc-40bc-48ca-b1c3-91150748b31a","date":"2017-04-21 12:25:22","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} @@ -4879,8 +4331,8 @@ {"submission_id":11135,"user":"a493c80e-3567-462a-bcbe-7bd974d52d8a","date":"2017-04-21 12:29:04","func_code":"def reverse_list(l):\n if not l or len(l) == 1:\n return l\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":40598,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 12:30:06","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":22377,"user":"98d44d17-92f8-4274-915e-b88bdd9dca26","date":"2017-04-21 12:30:06","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":26319,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:34:33","func_code":"def power(n, m):\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":17954,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:34:33","func_code":"def power(n, m):\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":26319,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:34:33","func_code":"def power(n, m):\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":17954,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:34:33","func_code":"def power(n, m):\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":24651,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:37:38","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":25097,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:37:38","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":25088,"user":"1c2a27a6-b2a2-47c9-b19f-39d39288a873","date":"2017-04-21 12:38:42","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n a = 0\n b = 1\n l = []\n c = 0\n while c != n:\n a += b\n a, b = b, a\n l.append(a)\n c += 1\n print(l)\n return l[-1]","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -4894,8 +4346,8 @@ {"submission_id":16810,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:46:23","func_code":"def minimum(n=[]):\n List = sorted(n)\n return List[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":16001,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:47:33","func_code":"def maximum(n=[]):\n List = sorted(n)\n return List[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":2060,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-21 12:47:33","func_code":"def maximum(n=[]):\n List = sorted(n)\n return List[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":9505,"user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":"2017-04-21 12:47:45","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21135,"user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":"2017-04-21 12:47:45","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":9505,"user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":"2017-04-21 12:47:45","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21135,"user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":"2017-04-21 12:47:45","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":2201,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:48:27","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n a[i], a[p] = a[p], a[i]\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":8986,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:49:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":16457,"user":"3bcffc16-908f-42c5-9ac3-f685ae6eca33","date":"2017-04-21 12:49:37","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} @@ -4932,8 +4384,8 @@ {"submission_id":41927,"user":"9e18f731-fa38-496b-927b-db0cd1aa3409","date":"2017-04-21 13:21:48","func_code":"def quicksort(a, n, b):\n a = sorted(a)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":28074,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 15:38:24","func_code":"def selectionsort(A):\n for i in range(len(A)):\n mini = i\n for j in range(i, len(A)):\n if A[j] < A[mini]:\n mini = j\n A[i], A[mini] = A[mini], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":16941,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-04-21 15:38:24","func_code":"def selectionsort(A):\n for i in range(len(A)):\n mini = i\n for j in range(i, len(A)):\n if A[j] < A[mini]:\n mini = j\n A[i], A[mini] = A[mini], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":18363,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:10:47","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":24482,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:10:47","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":18363,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:10:47","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":24482,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:10:47","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":2438,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:15:00","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":27875,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:15:00","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":34333,"user":"b0c92748-3b02-4340-a9d8-2ebe9a693531","date":"2017-04-21 16:18:14","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n if l[0] > l[1]:\n l.remove(l[1])\n else:\n l.remove(l[1])\n return maximum(l)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} @@ -4953,8 +4405,8 @@ {"submission_id":40303,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:35:44","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":20067,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:36:15","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":8719,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:36:15","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":9035,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:38:18","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26312,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:38:18","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":9035,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:38:18","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":26312,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:38:18","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":26728,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:39:34","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":41275,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:39:34","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":853,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:39:59","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -4966,33 +4418,33 @@ {"submission_id":33027,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:41:42","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":17925,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:41:42","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":28294,"user":"7b251fef-3898-4dec-aa70-18b4a70042a3","date":"2017-04-21 18:41:42","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":18022,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:08:21","func_code":"def power(m, n):\n if n == 0:\n return 0\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":13255,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:08:57","func_code":"def power(m, n):\n if n == 0:\n return 0\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19238,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":28399,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":29768,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":13702,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:12:11","func_code":"def power(i, power):\n if i == i ** power:\n return i\n power(i * i, power)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":13538,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:12:30","func_code":"def power(i, power):\n if i == i ** power:\n print(i)\n return i\n power(i * i, power)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33063,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:15:35","func_code":"def power(i, power):\n if i == i ** power:\n return i\n i *= i\n power(i, power)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":2648,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:17:17","func_code":"def power(i, n):\n if i == i ** n:\n print(i)\n return i\n i *= i\n power(i, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34710,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:25:31","func_code":"def power(i, n):\n return i ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21935,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:25:41","func_code":"def power(i, n):\n return i ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":12694,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:12","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":15035,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":28792,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":20218,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":18022,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:08:21","func_code":"def power(m, n):\n if n == 0:\n return 0\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":13255,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:08:57","func_code":"def power(m, n):\n if n == 0:\n return 0\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":19238,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":28399,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":29768,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-21 19:09:20","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":13702,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:12:11","func_code":"def power(i, power):\n if i == i ** power:\n return i\n power(i * i, power)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":13538,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:12:30","func_code":"def power(i, power):\n if i == i ** power:\n print(i)\n return i\n power(i * i, power)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":33063,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:15:35","func_code":"def power(i, power):\n if i == i ** power:\n return i\n i *= i\n power(i, power)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":2648,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:17:17","func_code":"def power(i, n):\n if i == i ** n:\n print(i)\n return i\n i *= i\n power(i, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":34710,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:25:31","func_code":"def power(i, n):\n return i ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21935,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:25:41","func_code":"def power(i, n):\n return i ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":12694,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:12","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":15035,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":28792,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":20218,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-21 20:29:19","func_code":"def power(i, n):\n if n == 0:\n return 1\n else:\n return i * power(i, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":6488,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:24:50","func_code":"def minimum(numbers):\n count = 0\n for i in numbers:\n if i > count:\n count = i\n return count","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":37465,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:26:24","func_code":"def minimum(numbers):\n count = numbers[0]\n for i in numbers:\n if i < count:\n count = i\n return count","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":13058,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:26:24","func_code":"def minimum(numbers):\n count = numbers[0]\n for i in numbers:\n if i < count:\n count = i\n return count","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":33348,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:32:57","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":12124,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:32:57","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33348,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:32:57","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":12124,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:32:57","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":41319,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:38:26","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34544,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:38:26","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":28743,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:39:51","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":5153,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 21:39:51","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":20808,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":12386,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":11787,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":20808,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":12386,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":11787,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-21 21:49:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":38815,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 22:03:07","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":15185,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 22:03:07","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":20133,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 22:09:03","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} @@ -5004,16 +4456,16 @@ {"submission_id":36500,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 23:15:48","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":38584,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 23:15:48","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":8800,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-04-21 23:15:48","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":1027,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:42:43","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":13880,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:42:43","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":1027,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:42:43","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":13880,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:42:43","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":20335,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:45:06","func_code":"def count_letters(line=''):\n print(len(line))","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":26407,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:45:24","func_code":"def count_letters(line=''):\n return len(line)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":35337,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:45:24","func_code":"def count_letters(line=''):\n return len(line)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":11704,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-22 00:45:24","func_code":"def count_letters(line=''):\n return len(line)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":15902,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":41517,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":41533,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":11553,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:15:00","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":15902,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":41517,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":41533,"user":"41c113b8-6f57-4003-bed3-3587b2376170","date":"2017-04-22 21:40:43","func_code":"def power(m, n):\n if n == 1:\n return m\n if n < 1:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":11553,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:15:00","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":39680,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:33:26","func_code":"def minimum(s):\n min = s[0]\n for c in s[1:]:\n if c < min:\n min = c\n return min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":10999,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:35:34","func_code":"def maximum(s):\n max = s[0]\n for c in s[1:]:\n if c > max:\n max = c\n return max","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":22299,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:48:39","func_code":"def reverse_list(s):\n return s[::-1]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -5025,8 +4477,8 @@ {"submission_id":22642,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 08:58:12","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":8514,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:00:50","func_code":"def count_letters(s):\n if len(s) == 0:\n return 0\n s = list(s)\n s.remove(s[0])\n return 1 + count_letters(s)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":6939,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:00:50","func_code":"def count_letters(s):\n if len(s) == 0:\n return 0\n s = list(s)\n s.remove(s[0])\n return 1 + count_letters(s)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":17540,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:12:46","func_code":"def power(m, n):\n if m == 1 or n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34636,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:12:46","func_code":"def power(m, n):\n if m == 1 or n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":17540,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:12:46","func_code":"def power(m, n):\n if m == 1 or n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":34636,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:12:46","func_code":"def power(m, n):\n if m == 1 or n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":22709,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:15:26","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":18391,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:15:26","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":22649,"user":"c0bd18cc-b8fa-4b4a-87c2-5e1043d7ff6c","date":"2017-04-23 09:16:37","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5037,15 +4489,15 @@ {"submission_id":25062,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-23 15:17:46","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":10415,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-23 15:17:46","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":13166,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-23 15:17:46","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":10176,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:25","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":24200,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":4623,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":10176,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:25","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":24200,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":4623,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 15:48:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":32109,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 16:32:36","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26875,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 16:32:36","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":9516,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 16:39:55","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":4252,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 16:39:55","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":13684,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 16:45:32","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":41711,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 16:45:32","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":13684,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 16:45:32","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":41711,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 16:45:32","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":40154,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 17:04:55","func_code":"def minimum(a):\n i = 1\n mini = a[0]\n while i < len(a):\n if mini < a[i]:\n mini = mini\n elif mini > a[i]:\n mini = a[i]\n i += 1\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":16526,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 17:04:55","func_code":"def minimum(a):\n i = 1\n mini = a[0]\n while i < len(a):\n if mini < a[i]:\n mini = mini\n elif mini > a[i]:\n mini = a[i]\n i += 1\n return mini","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":13028,"user":"99a8a900-efcf-4a9e-86ba-fdd0df4312d3","date":"2017-04-23 17:05:33","func_code":"def count_letters(s):\n n = 0\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -5066,8 +4518,8 @@ {"submission_id":19859,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 17:46:16","func_code":"def count_letters(a):\n al = list(a)\n tot = 0\n for c in al:\n tot += +1\n return tot","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":40299,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 19:00:44","func_code":"def reverse_list(a):\n return a[::-1]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":38881,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-23 19:00:44","func_code":"def reverse_list(a):\n return a[::-1]","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":3435,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:19:13","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":8307,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:19:13","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":3435,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:19:13","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":8307,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:19:13","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":38754,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:35:16","func_code":"def count_letters(s):\n n = 0\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":32999,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:35:16","func_code":"def count_letters(s):\n n = 0\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":16773,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:37:10","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5080,9 +4532,9 @@ {"submission_id":23224,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:37:32","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":21326,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:38:20","func_code":"def reverse_list(a):\n if len(a) == 0:\n return []\n return [a[-1]] + reverse_list(a[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":10469,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:38:20","func_code":"def reverse_list(a):\n if len(a) == 0:\n return []\n return [a[-1]] + reverse_list(a[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":6928,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":28374,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19047,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":6928,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":28374,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":19047,"user":"6a42703e-da42-4824-8b83-b6f291ad71be","date":"2017-04-23 19:39:56","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":29769,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:58:14","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":13238,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 19:58:14","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":25915,"user":"6cbd9686-8a3c-4d12-8a1a-70c661732027","date":"2017-04-23 20:51:53","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5110,31 +4562,31 @@ {"submission_id":33334,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-24 02:05:26","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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 return A","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":6516,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-24 02:05:26","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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 return A","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":35036,"user":"f463a026-5eb4-4a39-a858-3a798215a4ee","date":"2017-04-24 02:05:26","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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 return A","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} -{"submission_id":41328,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:19:22","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26788,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:19:22","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":41328,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:19:22","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":26788,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:19:22","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25346,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:20:02","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":40892,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:20:02","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":17606,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:41:41","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":30343,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:41:41","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":10611,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:47:48","func_code":"def fibonacci(N):\n if N == 0 or N == 1:\n return 1\n return fibonacci(N - 1) + fibonacci(N - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":4110,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 11:47:48","func_code":"def fibonacci(N):\n if N == 0 or N == 1:\n return 1\n return fibonacci(N - 1) + fibonacci(N - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":26937,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 11:54:37","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":25247,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 11:54:37","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":26937,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 11:54:37","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":25247,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 11:54:37","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":36668,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 12:00:08","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":32721,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 12:00:08","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} -{"submission_id":33161,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:19:29","func_code":"def power(base, power2):\n if base == 0:\n return 'invalid'\n if power2 == 0:\n return 1\n elif power2 == 1:\n return base\n else:\n return base * power(base, power2 - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":5720,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:19:29","func_code":"def power(base, power2):\n if base == 0:\n return 'invalid'\n if power2 == 0:\n return 1\n elif power2 == 1:\n return base\n else:\n return base * power(base, power2 - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":22128,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:19:31","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":15862,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:19:31","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":25996,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-24 12:21:28","func_code":"def power(m, n):\n m = m ** n\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":3372,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-24 12:21:28","func_code":"def power(m, n):\n m = m ** n\n return m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":6731,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 12:22:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":1369,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 12:22:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33161,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:19:29","func_code":"def power(base, power2):\n if base == 0:\n return 'invalid'\n if power2 == 0:\n return 1\n elif power2 == 1:\n return base\n else:\n return base * power(base, power2 - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":5720,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:19:29","func_code":"def power(base, power2):\n if base == 0:\n return 'invalid'\n if power2 == 0:\n return 1\n elif power2 == 1:\n return base\n else:\n return base * power(base, power2 - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":22128,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:19:31","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":15862,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:19:31","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":25996,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-24 12:21:28","func_code":"def power(m, n):\n m = m ** n\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":3372,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-24 12:21:28","func_code":"def power(m, n):\n m = m ** n\n return m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":6731,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 12:22:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":1369,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 12:22:18","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":4964,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:23:26","func_code":"def minimum(a):\n m = a[0]\n for n in a:\n if m > n:\n m = n\n return m","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":3534,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:23:26","func_code":"def minimum(a):\n m = a[0]\n for n in a:\n if m > n:\n m = n\n return m","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":24125,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-24 12:26:03","func_code":"def minimum(numbers):\n if len(numbers) == 1:\n return numbers[0]\n elif numbers[0] < numbers[1]:\n numbers.remove[numbers[1]]\n else:\n numbers.remove(numbers[0])\n return minimum(numbers)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":19878,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2017-04-24 12:26:51","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":20145,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2017-04-24 12:26:51","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":19878,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2017-04-24 12:26:51","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":20145,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2017-04-24 12:26:51","func_code":"def power(x, y):\n return x ** y","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":30078,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:27:01","func_code":"def maximum(a):\n m = a[0]\n for n in a:\n if m < n:\n m = n\n return m","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":18675,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:27:01","func_code":"def maximum(a):\n m = a[0]\n for n in a:\n if m < n:\n m = n\n return m","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":20714,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 12:27:59","func_code":"def minimum(a):\n a = sorted(a)\n return a[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5168,14 +4620,14 @@ {"submission_id":23927,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 12:44:03","func_code":"def reverse_list(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[len(a) - 1 - i]\n a[len(a) - 1 - i] = tmp\n i += 1\n return a","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":26074,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:44:29","func_code":"def count_letters(inputed, counter=0):\n if inputed[:-1] == '':\n return counter\n if counter == 0:\n counter += 1\n return count_letters(inputed[:-1], counter + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":40270,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:44:29","func_code":"def count_letters(inputed, counter=0):\n if inputed[:-1] == '':\n return counter\n if counter == 0:\n counter += 1\n return count_letters(inputed[:-1], counter + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} -{"submission_id":3606,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:47:08","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":3606,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:47:08","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":36532,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:48:31","func_code":"def minimum(a):\n return min(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26939,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:49:29","func_code":"def count_letters(s):\n i = 0\n for c in s:\n i += 1\n return i","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":5648,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:50:35","func_code":"def reverse_list(input_list, workinglist=[], new=True):\n if new:\n workinglist = []\n if len(input_list) == 0:\n return workinglist\n else:\n workinglist.append(input_list[-1])\n return reverse_list(input_list[:-1], workinglist, False)","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":7991,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:50:35","func_code":"def reverse_list(input_list, workinglist=[], new=True):\n if new:\n workinglist = []\n if len(input_list) == 0:\n return workinglist\n else:\n workinglist.append(input_list[-1])\n return reverse_list(input_list[:-1], workinglist, False)","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":5881,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-24 12:50:35","func_code":"def reverse_list(input_list, workinglist=[], new=True):\n if new:\n workinglist = []\n if len(input_list) == 0:\n return workinglist\n else:\n workinglist.append(input_list[-1])\n return reverse_list(input_list[:-1], workinglist, False)","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":14073,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:54:12","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":8561,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:54:12","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":14073,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:54:12","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":8561,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 12:54:12","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":30512,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:56:41","func_code":"def count_letters(s):\n i = 0\n for c in s:\n i += 1\n return i","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":14483,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:56:41","func_code":"def count_letters(s):\n i = 0\n for c in s:\n i += 1\n return i","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":28813,"user":"f98e9d61-9e86-4fed-86db-3cf718c5962d","date":"2017-04-24 12:56:53","func_code":"def reverse_list(a):\n m = a[::-1]\n return m","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -5229,8 +4681,8 @@ {"submission_id":41460,"user":"07676427-a705-4cb7-a5ef-6a1c3c67c950","date":"2017-04-24 13:34:48","func_code":"def selectionsort(A):\n i = 0\n while i < len(A) - 1:\n p = i\n j = i + 1\n while j < len(A):\n if A[j] < A[p]:\n p = j\n j += 1\n tmp = A[p]\n A[p] = A[i]\n A[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":11961,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 13:36:05","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":22881,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 13:36:05","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":6971,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 13:42:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":9091,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 13:42:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":6971,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 13:42:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":9091,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 13:42:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n elif n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":6634,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 13:48:04","func_code":"def reverse_list(l, i=0):\n if i < len(l) \/\/ 2:\n l[i], l[-i - 1] = l[-i - 1], l[i]\n return reverse_list(l, i + 1)\n else:\n return l","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":22971,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 13:48:04","func_code":"def reverse_list(l, i=0):\n if i < len(l) \/\/ 2:\n l[i], l[-i - 1] = l[-i - 1], l[i]\n return reverse_list(l, i + 1)\n else:\n return l","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":2432,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 13:53:56","func_code":"def lowest(first, rest):\n if len(rest) == 0:\n return first\n if first > rest[0] or first < 0:\n return lowest(rest[0], rest[1:])\n else:\n return lowest(first, rest[1:])\n\n\ndef minimum(l):\n\n def lowest(first, rest):\n if len(rest) == 0:\n return first\n if first > rest[0] or first < 0:\n return lowest(rest[0], rest[1:])\n else:\n return lowest(first, rest[1:])\n return lowest(l[0], l[1:])","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5243,8 +4695,8 @@ {"submission_id":40564,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 14:07:08","func_code":"def minimum(l, current_min=None):\n if not l:\n return current_min\n first = l.pop()\n if current_min == None or first < current_min:\n return minimum(l, first)\n return minimum(l, current_min)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":27397,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 14:09:37","func_code":"def maximum(l, current_max=None):\n if not l:\n return current_max\n first = l.pop()\n if current_max == None or first > current_max:\n return maximum(l, first)\n return maximum(l, current_max)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":42232,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 14:09:37","func_code":"def maximum(l, current_max=None):\n if not l:\n return current_max\n first = l.pop()\n if current_max == None or first > current_max:\n return maximum(l, first)\n return maximum(l, current_max)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":33577,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 14:11:55","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":14266,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 14:11:55","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33577,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 14:11:55","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":14266,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 14:11:55","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":31602,"user":"66e06699-d10a-47f1-a343-55edd72e95d2","date":"2017-04-24 14:17:14","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":7756,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 14:17:36","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":38598,"user":"ac1dec5e-a5eb-4183-ba72-3b639e82db3c","date":"2017-04-24 14:17:36","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -5312,8 +4764,8 @@ {"submission_id":38263,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 15:10:12","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":36358,"user":"75a32f49-710d-463f-8fee-0ae9b91a3034","date":"2017-04-24 15:10:12","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":7678,"user":"8d8fa15f-3f0d-4a69-849b-9b7da96123cd","date":"2017-04-24 15:10:43","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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, p + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":4056,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:11:30","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":39767,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:11:30","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":4056,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:11:30","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":39767,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:11:30","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":37025,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:14:05","func_code":"def minimum(a):\n a_sorted = sorted(a)\n return a","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":25336,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:14:28","func_code":"def minimum(a):\n return sorted(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":3623,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:14:42","func_code":"def minimum(a):\n return sorted(a)[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5344,8 +4796,8 @@ {"submission_id":31068,"user":"45fe5d71-35bd-4b87-b28c-71b204939543","date":"2017-04-24 15:29:43","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":12915,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:31:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":39923,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-04-24 15:31:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":16224,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 15:43:00","func_code":"def power(n, p):\n return n ** p","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30820,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 15:43:00","func_code":"def power(n, p):\n return n ** p","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":16224,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 15:43:00","func_code":"def power(n, p):\n return n ** p","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":30820,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 15:43:00","func_code":"def power(n, p):\n return n ** p","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":14189,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 15:53:39","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":14936,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 15:53:39","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":6589,"user":"9a05c20e-2fde-40c1-948b-649e25b30e6e","date":"2017-04-24 15:55:10","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} @@ -5386,8 +4838,8 @@ {"submission_id":35298,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 16:43:14","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":7373,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 16:44:06","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":40785,"user":"b3fb7be5-b8f9-4b08-be4d-66eb3fcb7782","date":"2017-04-24 16:44:06","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":29699,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:20:30","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n * power(n, p - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":14131,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:20:30","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n * power(n, p - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":29699,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:20:30","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n * power(n, p - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":14131,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:20:30","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n * power(n, p - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":5455,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:25:09","func_code":"def minimum(l, c=None):\n if c == None:\n return minimum(l[1:], l[0])\n if l == []:\n return c\n if l[0] < c:\n return minimum(l[1:], l[0])\n else:\n return minimum(l[1:], c)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":17266,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:25:09","func_code":"def minimum(l, c=None):\n if c == None:\n return minimum(l[1:], l[0])\n if l == []:\n return c\n if l[0] < c:\n return minimum(l[1:], l[0])\n else:\n return minimum(l[1:], c)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":33238,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:25:49","func_code":"def maximum(l, c=None):\n if c == None:\n return minimum(l[1:], l[0])\n if l == []:\n return c\n if l[0] > c:\n return minimum(l[1:], l[0])\n else:\n return minimum(l[1:], c)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} @@ -5395,9 +4847,9 @@ {"submission_id":7101,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:26:38","func_code":"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)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":20170,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:35:15","func_code":"def count_letters(word, current=0):\n if word == '':\n return current\n return count_letters(word[1:], current=current + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":27988,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:35:15","func_code":"def count_letters(word, current=0):\n if word == '':\n return current\n return count_letters(word[1:], current=current + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":23659,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:29","func_code":"def power(m, n):\n if n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33118,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":22348,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":23659,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:29","func_code":"def power(m, n):\n if n == 1:\n return m\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":33118,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":22348,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 17:35:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":23784,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:40:35","func_code":"def reverse_list(l, n=None):\n if l == []:\n return n\n if n == None:\n return reverse_list(l[:-1], [l[-1]])\n return reverse_list(l[:-1], n + [l[-1]])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":false} {"submission_id":34217,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:43:34","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":17838,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-24 17:43:34","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} @@ -5437,8 +4889,8 @@ {"submission_id":32011,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 19:39:38","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":39492,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 19:39:38","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":6092,"user":"051d024e-69b1-48d1-ba77-a6f2d97a48bc","date":"2017-04-24 19:39:38","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":23626,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:19:02","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":31952,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:19:02","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":23626,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:19:02","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":31952,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:19:02","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":2112,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:49:32","func_code":"def minimum(list_1):\n i = 0\n total = '1000000'\n while i < len(list_1):\n if int(list_1[i]) <= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":33468,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:49:32","func_code":"def minimum(list_1):\n i = 0\n total = '1000000'\n while i < len(list_1):\n if int(list_1[i]) <= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":17233,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 20:51:31","func_code":"def maximum(list_1):\n i = 0\n total = 0\n while i < len(list_1):\n if int(list_1[i]) >= int(total):\n total = list_1[i]\n else:\n 0\n i = i + 1\n return total","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} @@ -5461,8 +4913,8 @@ {"submission_id":32784,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-24 21:50:10","func_code":"def partition(a, p, r):\n q = j = p\n while j < r:\n if a[j] < a[r]:\n a[q], a[j] = a[j], a[q]\n q += 1\n j += 1\n a[q], a[r] = a[r], a[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":32581,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-24 21:50:21","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":22432,"user":"1a650795-f8bf-47db-90f0-c896555da6d7","date":"2017-04-24 21:50:21","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":33363,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-24 22:14:27","func_code":"def power(n, m):\n if m == 0:\n return 1\n else:\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":14489,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-24 22:14:27","func_code":"def power(n, m):\n if m == 0:\n return 1\n else:\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33363,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-24 22:14:27","func_code":"def power(n, m):\n if m == 0:\n return 1\n else:\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":14489,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-24 22:14:27","func_code":"def power(n, m):\n if m == 0:\n return 1\n else:\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":42311,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 22:18:25","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":19546,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 22:18:25","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":40725,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-24 22:26:59","func_code":"def minimum(m):\n if len(m) == 1:\n return m[0]\n else:\n a = m.pop()\n b = m.pop()\n if a < b:\n m.append(a)\n else:\n m.append(b)\n return minimum(m)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5476,8 +4928,8 @@ {"submission_id":39677,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 23:05:26","func_code":"def selectionsort(n):\n i = 0\n while i < len(n):\n position = i\n j = i + 1\n while j < len(n):\n if n[j] < n[position]:\n position = j\n j = j + 1\n val = n[position]\n n[position] = n[i]\n n[i] = val\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":31396,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 23:05:26","func_code":"def selectionsort(n):\n i = 0\n while i < len(n):\n position = i\n j = i + 1\n while j < len(n):\n if n[j] < n[position]:\n position = j\n j = j + 1\n val = n[position]\n n[position] = n[i]\n n[i] = val\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":17708,"user":"7a72123c-6850-4e9f-b407-211283f04a4c","date":"2017-04-24 23:05:26","func_code":"def selectionsort(n):\n i = 0\n while i < len(n):\n position = i\n j = i + 1\n while j < len(n):\n if n[j] < n[position]:\n position = j\n j = j + 1\n val = n[position]\n n[position] = n[i]\n n[i] = val\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":10984,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:46:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34172,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:46:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":10984,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:46:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":34172,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:46:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":7384,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:57:33","func_code":"def minimum(value):\n if len(value) == 1:\n return value[0]\n if value[0] < value[1]:\n value.remove(value[1])\n return minimum(value)\n else:\n value.remove(value[0])\n return minimum(value)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":25889,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:57:33","func_code":"def minimum(value):\n if len(value) == 1:\n return value[0]\n if value[0] < value[1]:\n value.remove(value[1])\n return minimum(value)\n else:\n value.remove(value[0])\n return minimum(value)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":897,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-24 23:57:33","func_code":"def minimum(value):\n if len(value) == 1:\n return value[0]\n if value[0] < value[1]:\n value.remove(value[1])\n return minimum(value)\n else:\n value.remove(value[0])\n return minimum(value)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5520,34 +4972,34 @@ {"submission_id":38531,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 11:17:20","func_code":"def reverse_list(m):\n if len(m) == 0:\n return []\n else:\n return [m[-1]] + reverse_list(m[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":3994,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 11:23:10","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":242,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 11:23:10","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":38023,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 11:50:08","func_code":"def power(n, c):\n return n ** c","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":39865,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 11:50:08","func_code":"def power(n, c):\n return n ** c","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":38023,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 11:50:08","func_code":"def power(n, c):\n return n ** c","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":39865,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 11:50:08","func_code":"def power(n, c):\n return n ** c","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":41522,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:15:29","func_code":"def minimum(n):\n if n == 0:\n return 0\n i = 1\n p = 0\n while i < len(n):\n if n[i] < n[p]:\n n[p] = n[i]\n i = i + 1\n return n[p]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":22936,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:17:52","func_code":"def minimum(n):\n if len(n) == 1:\n return l[0]\n else:\n minr = minimum(n[1:])\n return n[0] if n[0] < minr else minr","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":38890,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:18:12","func_code":"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","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":22275,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:18:12","func_code":"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","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":28783,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:33:17","func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maxi(n[1:])\n return n[0] if n[0] > maxr else minr","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":27080,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:33:53","func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n maxr = maximum(n[1:])\n return n[0] if n[0] > maxr else minr","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":4630,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:33:56","func_code":"def power(num, pwr):\n return num ** pwr","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":6395,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:33:56","func_code":"def power(num, pwr):\n return num ** pwr","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":4630,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:33:56","func_code":"def power(num, pwr):\n return num ** pwr","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":6395,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:33:56","func_code":"def power(num, pwr):\n return num ** pwr","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":34159,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:34:18","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 maxr","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":8682,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:34:18","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 maxr","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":41111,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:35:33","func_code":"def minimum(l):\n l = sorted(l)\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26835,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:35:33","func_code":"def minimum(l):\n l = sorted(l)\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":22238,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2017-04-25 12:36:22","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21930,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2017-04-25 12:36:22","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":22238,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2017-04-25 12:36:22","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21930,"user":"2157ade0-6890-435b-8669-a884e3233bc7","date":"2017-04-25 12:36:22","func_code":"def power(x, n):\n if n == 0:\n return 1\n elif n == 1:\n return x\n else:\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":12823,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:36:40","func_code":"def maximum(l):\n l = sorted(l)\n return l[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":2925,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:36:40","func_code":"def maximum(l):\n l = sorted(l)\n return l[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":27211,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:38:44","func_code":"def count_letters(string_):\n len(string_)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} -{"submission_id":29011,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:38:54","func_code":"def power(x, y):\n if y == 0:\n return x\n return power(x ** y, y - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":29011,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:38:54","func_code":"def power(x, y):\n if y == 0:\n return x\n return power(x ** y, y - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":37580,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:39:03","func_code":"def count_letters(n):\n if len(n) == 1:\n return n[0]\n length = len(n)\n return length","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":2907,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:39:31","func_code":"def count_letters(string_):\n counter = 0\n for i in string:\n counter += 1\n return counter","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":12958,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:39:45","func_code":"def count_letters(string_):\n counter = 0\n for i in string_:\n counter += 1\n return counter","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":4824,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-25 12:39:45","func_code":"def count_letters(string_):\n counter = 0\n for i in string_:\n counter += 1\n return counter","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":37419,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:41:16","func_code":"def count_letters(n):\n if len(n) == 1:\n return n[0]\n return 1 + count_letters(n[0:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} -{"submission_id":17334,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30090,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34972,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":17334,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":30090,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":34972,"user":"bd03ecd6-cea3-4854-803a-b14d429489a7","date":"2017-04-25 12:41:23","func_code":"def power(x, y):\n if y == 0:\n return 1\n return x * power(x, y - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":40072,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:41:46","func_code":"def count_letters(n):\n if len(n) == 1:\n return n[0]\n return 1 + count_letters(n[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":24037,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:41:46","func_code":"def count_letters(n):\n if len(n) == 1:\n return n[0]\n return 1 + count_letters(n[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":18164,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-25 12:41:46","func_code":"def count_letters(n):\n if len(n) == 1:\n return n[0]\n return 1 + count_letters(n[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} @@ -5578,20 +5030,20 @@ {"submission_id":17566,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:14:38","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":12844,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:14:54","func_code":"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","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":6413,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:14:54","func_code":"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","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":29191,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:10","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30789,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:10","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":29191,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:10","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":30789,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:10","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":17129,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:20","func_code":"def reverse_list(s):\n if len(s) == 0:\n return []\n else:\n return [s[-1]] + reverse_list(s[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":27071,"user":"61b5b70e-4e9d-424d-ba4b-cab01b8c205f","date":"2017-04-25 15:16:20","func_code":"def reverse_list(s):\n if len(s) == 0:\n return []\n else:\n return [s[-1]] + reverse_list(s[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":31323,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:20:17","func_code":"def power(x, n):\n if x == 0:\n return 1\n return x * power(n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":11050,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:20:41","func_code":"def power(x, n):\n if x == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":3958,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:21:37","func_code":"def power(x, n):\n if n == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":13020,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:21:37","func_code":"def power(x, n):\n if n == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":31323,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:20:17","func_code":"def power(x, n):\n if x == 0:\n return 1\n return x * power(n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":11050,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:20:41","func_code":"def power(x, n):\n if x == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":3958,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:21:37","func_code":"def power(x, n):\n if n == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":13020,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-25 15:21:37","func_code":"def power(x, n):\n if n == 0:\n return 1\n return x * power(x, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":9743,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 15:22:39","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":20319,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 15:22:39","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":13100,"user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":"2017-04-25 15:27:01","func_code":"def power(a, b):\n if b == 1:\n return a\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":28520,"user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":"2017-04-25 15:27:01","func_code":"def power(a, b):\n if b == 1:\n return a\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":11594,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 15:27:07","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":32107,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 15:27:07","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":13100,"user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":"2017-04-25 15:27:01","func_code":"def power(a, b):\n if b == 1:\n return a\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":28520,"user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":"2017-04-25 15:27:01","func_code":"def power(a, b):\n if b == 1:\n return a\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":11594,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 15:27:07","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":32107,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 15:27:07","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":26220,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 15:28:05","func_code":"def selectionsort(m):\n for i in range(len(m)):\n n = i\n for j in range(i, len(m)):\n if m[j] < m[n]:\n n = j\n m[i], m[n] = m[n], m[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":11123,"user":"93426de2-87e4-4c00-9910-de51627bd576","date":"2017-04-25 15:28:38","func_code":"def selectionsort(m):\n for i in range(len(m)):\n min_j = i\n for j in range(i, len(m)):\n if m[j] < m[min_j]:\n min_j = j\n m[i], m[min_j] = m[min_j], m[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":20350,"user":"477d4ab3-7007-4ba6-b1ff-797966495e9d","date":"2017-04-25 15:29:24","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n if l[0] < l[1]:\n l.remove(l[1])\n else:\n l.remove(l[0])\n return minimum()","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} @@ -5634,8 +5086,8 @@ {"submission_id":3172,"user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":"2017-04-25 16:03:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":13234,"user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":"2017-04-25 16:03:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":41870,"user":"6f8302a0-5974-4b36-a8e9-6b3968a8fce1","date":"2017-04-25 16:03:23","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} -{"submission_id":3148,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:04:40","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":34571,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:04:40","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":3148,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:04:40","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":34571,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:04:40","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":16986,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:06:26","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":25154,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:06:26","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":18210,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 16:09:35","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n m = minimum(l[1:])\n if m < l[0]:\n return m\n else:\n return l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5660,8 +5112,8 @@ {"submission_id":30234,"user":"652b3384-e559-46c5-81db-1bf2117db63b","date":"2017-04-25 16:23:38","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":11116,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 16:24:45","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":9474,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 16:24:45","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":35264,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2017-04-25 16:38:20","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19769,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2017-04-25 16:38:20","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":35264,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2017-04-25 16:38:20","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":19769,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2017-04-25 16:38:20","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":28105,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 16:39:57","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":3087,"user":"6668ebd6-a850-4666-b8cc-5c934a67601a","date":"2017-04-25 16:39:57","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":28610,"user":"fa7e9f17-de07-4868-ab69-667438d7becd","date":"2017-04-25 16:40:41","func_code":"def minimum(l):\n return min(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5686,8 +5138,8 @@ {"submission_id":14658,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 17:18:17","func_code":"def fibonacci(s):\n if s == 0:\n return 0\n if s in (0, 1):\n return 1\n return fibonacci(s - 1) + fibonacci(s - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":21047,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 17:18:31","func_code":"def fibonacci(s):\n if s in (0, 1):\n return 1\n return fibonacci(s - 1) + fibonacci(s - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":15519,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 17:18:31","func_code":"def fibonacci(s):\n if s in (0, 1):\n return 1\n return fibonacci(s - 1) + fibonacci(s - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":33917,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 18:40:36","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n ** p","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26812,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 18:40:36","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n ** p","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33917,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 18:40:36","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n ** p","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":26812,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 18:40:36","func_code":"def power(n, p):\n if p == 0:\n return 1\n return n ** p","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":10842,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 18:47:33","func_code":"def quicksort(array, b, c):\n less = []\n greater = []\n equal = []\n if len(array) > 0:\n piv = array[0]\n less = [i for i in array if i < piv]\n greater = [i for i in array if i > piv]\n greater = [i for i in array if i == piv]\n array = less + greater + equal","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":10702,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 18:47:57","func_code":"def quicksort(array, b, c):\n less = []\n greater = []\n equal = []\n if len(array) > 0:\n piv = array[0]\n less = [i for i in array if i < piv]\n greater = [i for i in array if i > piv]\n greater = [i for i in array if i == piv]\n array = greater + equal + less","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":10273,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 18:49:45","func_code":"def quicksort(array, b, c):\n less = []\n greater = []\n equal = []\n if len(array) > 0:\n piv = array[0]\n less = [i for i in array if i < piv]\n greater = [i for i in array if i > piv]\n less = [i for i in array if i == piv]\n quicksort(greater, b, c)\n quicksort(less, b, c)\n array = greater + equal + less","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} @@ -5719,9 +5171,9 @@ {"submission_id":26108,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 19:09:04","func_code":"def _quicksort(array):\n if len(array) <= 1:\n return array\n else:\n piv = array[0]\n less = []\n greater = []\n for i in array:\n if i < piv:\n less = less + [i]\n else:\n greater = greater + [i]\n less = _quicksort(less)\n more = _quicksort(more)\n return less + more\n\n\ndef quicksort(array, a, b):\n array = _quicksort(array)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":36541,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 19:09:35","func_code":"def _quicksort(array):\n if len(array) <= 1:\n return array\n else:\n piv = array[0]\n less = []\n greater = []\n for i in array:\n if i < piv:\n less = less + [i]\n else:\n greater = greater + [i]\n less = _quicksort(less)\n greater = _quicksort(greater)\n return less + greater\n\n\ndef quicksort(array, a, b):\n array = _quicksort(array)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} {"submission_id":10019,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 19:12:51","func_code":"def _quicksort(array):\n if not array:\n return []\n else:\n pivot = array[0]\n less = [x for x in array if x < pivot]\n more = [x for x in array[1:] if x >= pivot]\n return quicksort(less) + [pivot] + quicksort(more)\n\n\ndef quicksort(l, a, b):\n\n def _quicksort(array):\n if not array:\n return []\n else:\n pivot = array[0]\n less = [x for x in array if x < pivot]\n more = [x for x in array[1:] if x >= pivot]\n return quicksort(less) + [pivot] + quicksort(more)\n l = _quicksort(l)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":false} -{"submission_id":10292,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":35990,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19887,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":10292,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":35990,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":19887,"user":"4986b17f-a671-4d40-a5ca-1c65fd498cbf","date":"2017-04-25 19:13:07","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":41513,"user":"262b3841-5158-4b0c-be99-57281e73f267","date":"2017-04-25 19:13:12","func_code":"def _quicksort(array):\n if not array:\n return []\n else:\n pivot = array[0]\n less = [x for x in array if x < pivot]\n more = [x for x in array[1:] if x >= pivot]\n return _quicksort(less) + [pivot] + _quicksort(more)\n\n\ndef quicksort(l, a, b):\n\n def _quicksort(array):\n if not array:\n return []\n else:\n pivot = array[0]\n less = [x for x in array if x < pivot]\n more = [x for x in array[1:] if x >= pivot]\n return _quicksort(less) + [pivot] + _quicksort(more)\n l = _quicksort(l)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":12265,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 19:13:21","func_code":"def count_letters(l):\n return len(l)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":25271,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 19:13:21","func_code":"def count_letters(l):\n return len(l)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -5749,8 +5201,8 @@ {"submission_id":17693,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 20:15:18","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n p = i\n j = i + 1\n while j < len(A):\n if A[j] < A[p]:\n p = j\n j += 1\n tmp = A[p]\n A[p] = A[i]\n A[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":18485,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 20:15:18","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n p = i\n j = i + 1\n while j < len(A):\n if A[j] < A[p]:\n p = j\n j += 1\n tmp = A[p]\n A[p] = A[i]\n A[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":26492,"user":"2eb2f93d-3491-4b0b-bad9-894c90595058","date":"2017-04-25 20:15:18","func_code":"def selectionsort(A):\n i = 0\n while i < len(A):\n p = i\n j = i + 1\n while j < len(A):\n if A[j] < A[p]:\n p = j\n j += 1\n tmp = A[p]\n A[p] = A[i]\n A[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":20334,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:29:24","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":17683,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:29:24","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":20334,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:29:24","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":17683,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:29:24","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":35892,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:33:29","func_code":"def fibonacci(n):\n if n == 1 or n == 0:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":39803,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:33:29","func_code":"def fibonacci(n):\n if n == 1 or n == 0:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18204,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:35:38","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} @@ -5765,8 +5217,8 @@ {"submission_id":17627,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 21:53:56","func_code":"def count_letters(word):\n if len(word) == 0:\n return 0\n else:\n return 1 + count_letters(word[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":7855,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-25 22:13:24","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":13774,"user":"9675c8b9-337a-4fd1-bb8f-8e3510c7f703","date":"2017-04-25 22:13:24","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 2) + fibonacci(n - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":21255,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-25 22:13:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":26950,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-25 22:13:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":21255,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-25 22:13:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":26950,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-25 22:13:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":1472,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 22:19:44","func_code":"def minimum(n):\n n.sort()\n return n[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":663,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 22:19:44","func_code":"def minimum(n):\n n.sort()\n return n[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":40903,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-04-25 22:20:23","func_code":"def maximum(n):\n n.sort()\n return n[-1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5799,9 +5251,9 @@ {"submission_id":42143,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-26 00:00:28","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":11294,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-26 00:00:28","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":3491,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-26 00:02:14","func_code":"def selectionsort(a):\n a = a[:]\n out = []\n while a:\n smallest = min(a)\n a.remove(smallest)\n out.append(smallest)\n return out","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} -{"submission_id":35795,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:05:03","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":27612,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:08:35","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":10800,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:08:35","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":35795,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:05:03","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":27612,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:08:35","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":10800,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:08:35","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":26827,"user":"a379289f-2b57-4917-ac63-01ab37fb3785","date":"2017-04-26 00:22:36","func_code":"def selectionsort(a):\n a = a[:]\n out = []\n if a:\n smallest = min(a)\n a.remove(smallest)\n out.append(smallest)\n return out","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} {"submission_id":1670,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:32:28","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tmp = minimum(l[1:])\n return tmp if tmp > l[0] else l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":7215,"user":"a6392e0c-005c-4131-a7bb-80cf6af877de","date":"2017-04-26 00:32:45","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n tmp = minimum(l[1:])\n return tmp if tmp < l[0] else l[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5853,9 +5305,9 @@ {"submission_id":40228,"user":"712c50ed-0c17-44f1-a863-183f2d9a5e14","date":"2017-04-26 02:51:23","func_code":"def sort(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef quicksort(A, p, r):\n if r <= p:\n return\n q = sort(A, p, r)\n quicksort(A, p, q - 1)\n quicksort(A, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":39872,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-26 11:24:40","func_code":"def fibonacci(n):\n prev = 0\n cur = 1\n i = 0\n while i < n:\n tmp = cur\n cur = cur + prev\n prev = tmp\n i = i + 1\n return cur","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":32484,"user":"88e97329-9c3f-4e1a-8643-1311f4e801a9","date":"2017-04-26 11:24:40","func_code":"def fibonacci(n):\n prev = 0\n cur = 1\n i = 0\n while i < n:\n tmp = cur\n cur = cur + prev\n prev = tmp\n i = i + 1\n return cur","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":30806,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:36:58","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":40611,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:37:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":31995,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:37:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":30806,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:36:58","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":40611,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:37:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":31995,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:37:30","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":18959,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:50:40","func_code":"def minimum(a):\n if a == []:\n return 1\n tmp = a.pop()\n if tmp < minimun(a):\n return tmp","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":17326,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:57:08","func_code":"def minimum(a):\n if a.pop() < a[-1]:\n tmp = a.pop()\n if a == []:\n return tmp\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":14121,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 11:57:52","func_code":"def minimum(a):\n if a == []:\n return tmp\n if a.pop() < a[-1]:\n tmp = a.pop()\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} @@ -5897,9 +5349,9 @@ {"submission_id":10554,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 12:48:50","func_code":"def fibonacci(a):\n if a == 0:\n return 0\n return 1 + fibonacci(a - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":25853,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 12:49:08","func_code":"def fibonacci(a):\n if a == 0:\n return 1\n return 1 + fibonacci(a - 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":36655,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 12:50:25","func_code":"def fibonacci(a, curr=1):\n if a == 0:\n return curr\n return curr + fibonacci(a - 1, curr)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":10394,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:09","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33231,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:33","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":10586,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:33","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":10394,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:09","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":33231,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:33","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":10586,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 12:52:33","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return power(m, n - 1) * m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":26196,"user":"a48376ed-7138-4481-a4da-74490838ea3e","date":"2017-04-26 13:00:12","func_code":"def fibonacci(a, prev=1, curr=1):\n if a == 0:\n return 0\n return prev + fibonacci(a - 1, prev, curr)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":1581,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 13:00:21","func_code":"def minimum(mylist):\n if len(mylist) == 1:\n return mylist[0]\n if mylist[0] > mylist[1]:\n mylist.remove(mylist[0])\n return minimum(mylist)\n else:\n mylist.remove(mylist[1])\n return minimum(mylist)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":4613,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-26 13:00:21","func_code":"def minimum(mylist):\n if len(mylist) == 1:\n return mylist[0]\n if mylist[0] > mylist[1]:\n mylist.remove(mylist[0])\n return minimum(mylist)\n else:\n mylist.remove(mylist[1])\n return minimum(mylist)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -5935,8 +5387,8 @@ {"submission_id":25265,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:12:02","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] > a[-1]:\n a[-2], a[-1] = a[-1], a[-2]\n a.pop()\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":10031,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:00","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n a[-2], a[-1] = a[-1], a[-2]\n a.pop()\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":17364,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:00","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[-2] < a[-1]:\n a[-2], a[-1] = a[-1], a[-2]\n a.pop()\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":25846,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:34","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":18794,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:34","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":25846,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:34","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":18794,"user":"ba8a7560-aac9-45ef-b6fd-730b60e73e8c","date":"2017-04-26 13:13:34","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25109,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-26 13:51:50","func_code":"def count_letters(word, count=0):\n if word == '':\n return count\n else:\n word = word[1:]\n return count_letters(word, count + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":31131,"user":"3d19e1db-d496-420c-b077-41631364e4f7","date":"2017-04-26 13:51:50","func_code":"def count_letters(word, count=0):\n if word == '':\n return count\n else:\n word = word[1:]\n return count_letters(word, count + 1)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":36361,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-26 13:53:02","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -5977,8 +5429,8 @@ {"submission_id":41735,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-26 15:03:03","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":13692,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:11:20","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[0])\n return maximum(l)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":28120,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:11:20","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[0])\n return maximum(l)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":17873,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:12:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":38278,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:12:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":17873,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:12:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":38278,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:12:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":3730,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:14:32","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26713,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:14:32","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":39322,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-04-26 15:16:51","func_code":"def fibonacci(n):\n if n == 0:\n return 1\n elif n == 1:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} @@ -5990,17 +5442,17 @@ {"submission_id":285,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-26 15:17:59","func_code":"def selectionsort(array):\n for i in range(len(array)):\n for j in range(i, len(array)):\n if array[i] > array[j]:\n array[i], array[j] = array[j], array[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":4971,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-26 15:17:59","func_code":"def selectionsort(array):\n for i in range(len(array)):\n for j in range(i, len(array)):\n if array[i] > array[j]:\n array[i], array[j] = array[j], array[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":1306,"user":"e36ebdf2-7cd7-440f-af8b-386d6e2d920f","date":"2017-04-26 15:17:59","func_code":"def selectionsort(array):\n for i in range(len(array)):\n for j in range(i, len(array)):\n if array[i] > array[j]:\n array[i], array[j] = array[j], array[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":27055,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:10","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * (n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":37152,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30159,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":27055,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:10","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * (n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":37152,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":30159,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:26:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25008,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:29:59","func_code":"def minimum(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 minimum(lst)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":18829,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:29:59","func_code":"def minimum(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 minimum(lst)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":29672,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:42:00","func_code":"def maximum(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[q])\n else:\n lst.remove(lst[0])\n return maximum(lst)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":6664,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:42:20","func_code":"def maximum(lst):\n if len(lst) == 1:\n return lst[0]\n if lst[0] > lst[1]:\n lst.remove(lst[0])\n else:\n lst.remove(lst[0])\n return maximum(lst)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":18416,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:43:04","func_code":"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)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":26121,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 15:43:04","func_code":"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)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":26919,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 16:38:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":18531,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 16:38:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":26919,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 16:38:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":18531,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 16:38:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":8083,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 16:38:58","func_code":"def reverse_list(lst):\n l = lst[::-1]\n return l","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":5529,"user":"05f63619-1095-4d15-8436-1f0832a593bc","date":"2017-04-26 16:38:58","func_code":"def reverse_list(lst):\n l = lst[::-1]\n return l","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":37980,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 17:01:17","func_code":"def count_letters(s):\n if s == '':\n return 0\n return 1 + count_letters(s[:-1])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -6026,8 +5478,8 @@ {"submission_id":14163,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:09:44","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":40240,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:12:28","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":14,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:12:28","func_code":"def selectionsort(A):\n for i in range(len(A)):\n min_j = i\n for j in range(i, len(A)):\n if A[j] < A[min_j]:\n min_j = j\n A[i], A[min_j] = A[min_j], A[i]","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":8222,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:14:23","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":41580,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:14:23","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":8222,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:14:23","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":41580,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:14:23","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":5808,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:15:27","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":41338,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:15:27","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":34644,"user":"794362b7-cbcd-4bea-bafb-7967c266e248","date":"2017-04-26 19:19:28","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6040,9 +5492,9 @@ {"submission_id":41776,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 19:35:53","func_code":"def partition(a, start, end):\n j = q = start\n while j < end:\n if a[j] < a[end]:\n a[j], a[q] = a[q], a[j]\n q += 1\n j += 1\n a[end], a[q] = a[q], a[end]\n return q\n\n\ndef quicksort(a, start, end):\n if end <= start:\n return\n q = partition(a, start, end)\n quicksort(a, start, q - 1)\n quicksort(a, q + 1, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":32668,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 19:35:53","func_code":"def partition(a, start, end):\n j = q = start\n while j < end:\n if a[j] < a[end]:\n a[j], a[q] = a[q], a[j]\n q += 1\n j += 1\n a[end], a[q] = a[q], a[end]\n return q\n\n\ndef quicksort(a, start, end):\n if end <= start:\n return\n q = partition(a, start, end)\n quicksort(a, start, q - 1)\n quicksort(a, q + 1, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":41217,"user":"431d0ef6-9edd-464b-a5fa-cccf8b152f4e","date":"2017-04-26 19:35:53","func_code":"def partition(a, start, end):\n j = q = start\n while j < end:\n if a[j] < a[end]:\n a[j], a[q] = a[q], a[j]\n q += 1\n j += 1\n a[end], a[q] = a[q], a[end]\n return q\n\n\ndef quicksort(a, start, end):\n if end <= start:\n return\n q = partition(a, start, end)\n quicksort(a, start, q - 1)\n quicksort(a, q + 1, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":28362,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:15:26","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return n * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":27276,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:17:45","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21720,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:17:45","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":28362,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:15:26","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return n * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":27276,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:17:45","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21720,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:17:45","func_code":"def power(m, n):\n if n == 1:\n return m\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":29047,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:23:48","func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < n[1]:\n n.remove(n[1])\n else:\n n.remove(n[0])\n return minimum(n)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":27140,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:23:48","func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < n[1]:\n n.remove(n[1])\n else:\n n.remove(n[0])\n return minimum(n)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":12175,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 20:29:37","func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n if n[0] > n[1]:\n n.remove(n[1])\n else:\n n.remove(n[0])\n return maximum(n)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6059,14 +5511,14 @@ {"submission_id":14852,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 22:33:08","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":30810,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 22:33:08","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":29352,"user":"7b8e2d7b-1f3a-4e34-b02c-e6ac46baa465","date":"2017-04-26 22:33:08","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":33392,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:25:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":39628,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:25:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":33392,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:25:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":39628,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:25:49","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":35416,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:31:20","func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < n[1]:\n n.remove(n[1])\n return minimum(n)\n else:\n n.remove(n[0])\n return minimum(n)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":6624,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:31:20","func_code":"def minimum(n):\n if len(n) == 1:\n return n[0]\n if n[0] < n[1]:\n n.remove(n[1])\n return minimum(n)\n else:\n n.remove(n[0])\n return minimum(n)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":19796,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:33:05","func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n if n[0] > n[1]:\n n.remove(n[1])\n return maximum(n)\n else:\n n.remove(n[0])\n return maximum(n)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":615,"user":"f1c26f39-fb4c-4010-aaa3-142fb52f57b9","date":"2017-04-27 10:33:05","func_code":"def maximum(n):\n if len(n) == 1:\n return n[0]\n if n[0] > n[1]:\n n.remove(n[1])\n return maximum(n)\n else:\n n.remove(n[0])\n return maximum(n)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":20287,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:21:26","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":39189,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:21:26","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":20287,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:21:26","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":39189,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:21:26","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":17138,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:24:22","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":23080,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:24:22","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":29689,"user":"4e44ac28-c84a-43ee-9b95-c4270d7bb030","date":"2017-04-27 12:29:09","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6095,15 +5547,15 @@ {"submission_id":28201,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-27 13:18:10","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n a[i], a[p] = a[p], a[i]\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":42181,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-27 13:18:10","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n a[i], a[p] = a[p], a[i]\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":28180,"user":"4b622395-1c2b-4a5d-ba03-c6e0e0ef2dd7","date":"2017-04-27 13:18:10","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n a[i], a[p] = a[p], a[i]\n i = i + 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} -{"submission_id":15952,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:00:08","func_code":"def power(a, b):\n if b == 0:\n return 1\n else:\n return power(a, b - 1) * a","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":11538,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:00:08","func_code":"def power(a, b):\n if b == 0:\n return 1\n else:\n return power(a, b - 1) * a","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":15952,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:00:08","func_code":"def power(a, b):\n if b == 0:\n return 1\n else:\n return power(a, b - 1) * a","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":11538,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:00:08","func_code":"def power(a, b):\n if b == 0:\n return 1\n else:\n return power(a, b - 1) * a","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":31291,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:01:57","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":41586,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:01:57","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":14685,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:02:48","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":2862,"user":"daaef1e8-1fe4-4dc4-b002-6e89fad22a66","date":"2017-04-27 14:02:48","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":28166,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:18:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":33318,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:19:24","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":29371,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:19:24","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":28166,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:18:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":33318,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:19:24","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":29371,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:19:24","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":24883,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:36:13","func_code":"def minimum(l):\n if l == []:\n return []\n temp = minimum(l[1:])\n if len(temp) == 0 or l[0] > temp[0]:\n temp = [l[0]]\n return temp[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":33669,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:36:44","func_code":"def minimum(l):\n if l == []:\n return []\n temp = minimum(l[1:])\n if len(temp) == 0 or l[0] > temp[0]:\n temp = [l[0]]\n return temp[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":25173,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 14:37:10","func_code":"def minimum(l):\n if l == []:\n return []\n temp = minimum(l[1:])\n print(temp)\n if len(temp) == 0 or l[0] > temp[0]:\n temp = [l[0]]\n return temp[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} @@ -6131,8 +5583,8 @@ {"submission_id":4657,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 15:20:28","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":40388,"user":"c0a5d565-4fbf-4274-85af-71162f38b8d4","date":"2017-04-27 15:20:28","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":31861,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-27 15:21:34","func_code":"def minimum(a, minimum=0):\n if not a:\n return minimum\n test = a.pop()\n if test < minimum or minimum == 0:\n return minimum(a, test)\n return minimum(a, minimum)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} -{"submission_id":22001,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-04-27 15:21:58","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":16350,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-04-27 15:21:58","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":22001,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-04-27 15:21:58","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":16350,"user":"f6343d5f-9ee0-441c-a67c-781ee180947e","date":"2017-04-27 15:21:58","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":644,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-27 15:22:01","func_code":"def minimum(a, minimum=0):\n if not a:\n return minimum\n test = int(a.pop())\n if test < minimum or minimum == 0:\n return minimum(a, test)\n return minimum(a, minimum)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":35362,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-27 15:22:50","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, int(test))\n return minimum(a, int(minimum))","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":16831,"user":"59b507a0-b0a2-42b7-a6af-736ab71c8fe1","date":"2017-04-27 15:23:10","func_code":"def minimum(a, minimum=0):\n if not a:\n return minimum\n test = str(a.pop())\n if int(test) < int(minimum) or int(minimum) == 0:\n return minimum(a, test)\n return minimum(a, minimum)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} @@ -6197,11 +5649,7 @@ {"submission_id":1703,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:47:00","func_code":"def search(str, letter):\n if str[i] == '':\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":39062,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:47:00","func_code":"def fibonacci(n):\n if n == n - 1 + (n - 2):\n return n\n else:\n fibonacci(n + 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":18297,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:47:00","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} -{"submission_id":24372,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:47:00","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":8920,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":11629,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":8132,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def fibonacci(n):\n if n == n - 1 + (n - 2):\n return n\n else:\n fibonacci(n + 1)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":13140,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":27586,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":false} {"submission_id":38573,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} {"submission_id":40786,"user":"fc19956d-3237-43b9-841d-e5882c3359f1","date":"2017-04-27 17:48:46","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":false} @@ -6244,22 +5692,22 @@ {"submission_id":23204,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-28 10:13:56","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":30243,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-28 10:13:56","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":14300,"user":"31fe4020-d4b7-4bf5-ac95-b28807a90ae8","date":"2017-04-28 10:13:56","func_code":"def quicksort(A, start, end):\n if end - start < 1:\n return\n i = j = start\n while i <= end:\n if A[i] <= A[end]:\n A[i], A[j] = A[j], A[i]\n j += 1\n i += 1\n quicksort(A, start, j - 2)\n quicksort(A, j, end)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":9899,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:25:50","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":32853,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:25:50","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":9899,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:25:50","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":32853,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:25:50","func_code":"def power(a, b):\n if b == 0:\n return 1\n return a * power(a, b - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":10134,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:44:00","func_code":"def minimum(a):\n i = 1\n s = a[0]\n while i < len(a):\n if s > a[i]:\n s = a[i]\n i = i + 1\n return s","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":14306,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:44:00","func_code":"def minimum(a):\n i = 1\n s = a[0]\n while i < len(a):\n if s > a[i]:\n s = a[i]\n i = i + 1\n return s","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":31237,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:52:57","func_code":"def maximum(a):\n a = sorted(a)\n return a[len(a) - 1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":40187,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 10:52:57","func_code":"def maximum(a):\n a = sorted(a)\n return a[len(a) - 1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":10572,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:06:04","func_code":"def count_letters(a):\n if a == '':\n return 0\n a = a[:-1]\n n = 1\n return n + count_letters(a)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":22519,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:06:04","func_code":"def count_letters(a):\n if a == '':\n return 0\n a = a[:-1]\n n = 1\n return n + count_letters(a)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":5228,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:21:11","func_code":"def power(n, mult):\n if mult == 0:\n return 0\n n * n\n power(n, mult - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":14185,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:27","func_code":"def power(n, mult):\n if mult == 0:\n return 0\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":40889,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:49","func_code":"def power(n, mult):\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":23687,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:49","func_code":"def power(n, mult):\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":5228,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:21:11","func_code":"def power(n, mult):\n if mult == 0:\n return 0\n n * n\n power(n, mult - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":14185,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:27","func_code":"def power(n, mult):\n if mult == 0:\n return 0\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":40889,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:49","func_code":"def power(n, mult):\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":23687,"user":"e5db5e57-0261-4967-963a-42d1a98c03de","date":"2017-04-28 11:22:49","func_code":"def power(n, mult):\n return n ** mult\n power(n, mult - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":41299,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:28:39","func_code":"def reverse_list(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a.pop())\n i = i + 1\n return b","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":741,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:28:39","func_code":"def reverse_list(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a.pop())\n i = i + 1\n return b","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":22898,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2017-04-28 11:30:56","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":22550,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2017-04-28 11:30:56","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":22898,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2017-04-28 11:30:56","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":22550,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2017-04-28 11:30:56","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n * power(n, m - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":20982,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:33:52","func_code":"def fibonacci(a):\n if a == 0 or a == 1:\n return 1\n return fibonacci(a - 1) + fibonacci(a - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":41032,"user":"030c2a56-757a-4b4d-ac91-67aecc3d9b33","date":"2017-04-28 11:33:52","func_code":"def fibonacci(a):\n if a == 0 or a == 1:\n return 1\n return fibonacci(a - 1) + fibonacci(a - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14591,"user":"fccb16a1-abd7-4ee8-a2c6-5b7653d7a7dc","date":"2017-04-28 11:33:54","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(l)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6297,15 +5745,15 @@ {"submission_id":34940,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 13:07:32","func_code":"def reverse_list(l):\n if l == []:\n return []\n temp = reverse_list(l[1:])\n temp.append(l[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":17151,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 13:57:48","func_code":"def fibonacci(n):\n if n == 0 or n == 1 or n == 2:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":1584,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 13:58:03","func_code":"def fibonacci(n):\n if n == 0 or n == 1 or n == 2:\n return 1\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":25907,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:05:13","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n power(base, exp)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":27282,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:05:36","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n power(base, new_exp)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":3011,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:06:42","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n return power(base, new_exp)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":19500,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:07:39","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * base\n new_exp = exp - 1\n return power(new_base, new_exp)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":25907,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:05:13","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n power(base, exp)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":27282,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:05:36","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n power(base, new_exp)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":3011,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:06:42","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n base *= base\n new_exp = exp - 1\n return power(base, new_exp)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":19500,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:07:39","func_code":"def power(base, exp):\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * base\n new_exp = exp - 1\n return power(new_base, new_exp)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} {"submission_id":32413,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 14:14:13","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34993,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 14:14:27","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":34390,"user":"2f34a0ed-0d6a-447e-8e47-6a90f11d53a7","date":"2017-04-28 14:14:27","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":11250,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:31:38","func_code":"def power(base, exp, mult=None):\n if mult is None:\n mult = base\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * mult\n new_exp = exp - 1\n return power(new_base, new_exp, mult)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":23281,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:31:38","func_code":"def power(base, exp, mult=None):\n if mult is None:\n mult = base\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * mult\n new_exp = exp - 1\n return power(new_base, new_exp, mult)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":11250,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:31:38","func_code":"def power(base, exp, mult=None):\n if mult is None:\n mult = base\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * mult\n new_exp = exp - 1\n return power(new_base, new_exp, mult)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":23281,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:31:38","func_code":"def power(base, exp, mult=None):\n if mult is None:\n mult = base\n if exp == 0:\n return 1\n elif exp == 1:\n return base\n else:\n new_base = base * mult\n new_exp = exp - 1\n return power(new_base, new_exp, mult)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":27292,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:33:46","func_code":"def minimum(l):\n min = inf\n for item in l:\n min = item if item < min else min\n return min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":2504,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:34:22","func_code":"def minimum(l):\n min = None\n for item in l:\n min = item if min == None or item < min else min\n return min","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":38645,"user":"d566071f-0679-42ce-9081-3fac29a67d21","date":"2017-04-28 14:35:03","func_code":"def maximum(l):\n min = None\n for item in l:\n min = item if min == None or item > min else min\n return min","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6333,8 +5781,8 @@ {"submission_id":36574,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:17:32","func_code":"def fibonacci(s):\n if s <= 1:\n return 1\n else:\n return fibonacci(s - 1) + fibonacci(s - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":9744,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:06","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":18481,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:06","func_code":"def count_letters(s):\n if s == '':\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":37787,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:45","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":39920,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:45","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":37787,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:45","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":39920,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:25:45","func_code":"def power(n, p):\n if p == 0:\n return 1\n else:\n return power(n, p - 1) * n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":14870,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:26:23","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":22618,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:26:23","func_code":"def minimum(l):\n if len(l) == 1:\n return l[0]\n else:\n min_ret = minimum(l[1:])\n return l[0] if l[0] < min_ret else min_ret","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":12789,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:26:51","func_code":"def maximum(l):\n if len(l) == 1:\n return l[0]\n else:\n max_ret = maximum(l[1:])\n return l[0] if l[0] > max_ret else max_ret","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6344,16 +5792,16 @@ {"submission_id":40068,"user":"f56d6cc3-92a7-49e7-aa07-2e1c83caaabe","date":"2017-04-28 15:27:53","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":9351,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2017-04-28 15:43:46","func_code":"def reverse_list(l):\n if l == []:\n return []\n temp = reverse_list(l[1:])\n temp.append(l[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":21694,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2017-04-28 15:43:46","func_code":"def reverse_list(l):\n if l == []:\n return []\n temp = reverse_list(l[1:])\n temp.append(l[0])\n return temp","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":25642,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 15:44:23","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":31046,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 15:44:23","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":25642,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 15:44:23","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":31046,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 15:44:23","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":29502,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2017-04-28 15:45:20","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":35765,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2017-04-28 15:45:20","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":14603,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 16:00:47","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":31146,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 16:00:47","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":11946,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 16:05:38","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":33561,"user":"a4f49b67-25e5-43c2-a48c-827c1919659f","date":"2017-04-28 16:05:38","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":8916,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:18:12","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":8489,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:18:12","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":8916,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:18:12","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":8489,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:18:12","func_code":"def power(m, n):\n return m ** n","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":25211,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:23:17","func_code":"def minimum(l):\n return sorted(l)[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":32535,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:23:17","func_code":"def minimum(l):\n return sorted(l)[0]","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":25701,"user":"a2b86688-0a82-4779-8335-a584906257b0","date":"2017-04-28 16:24:54","func_code":"def maximum(l):\n return sorted(l)[len(l) - 1]","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6384,8 +5832,8 @@ {"submission_id":11766,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:12:53","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":31100,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-28 17:15:17","func_code":"def count_letters(s):\n if not s:\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":30513,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-04-28 17:15:17","func_code":"def count_letters(s):\n if not s:\n return 0\n else:\n return 1 + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} -{"submission_id":9886,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:29","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":7706,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:29","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":9886,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:29","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":7706,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:29","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":24185,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:36","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":17835,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:15:36","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":5179,"user":"2b99bb5a-b2e4-4bc1-b1ae-ecb59c74bd22","date":"2017-04-28 17:19:20","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6422,9 +5870,9 @@ {"submission_id":12298,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-28 18:19:44","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":5940,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-28 18:19:44","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":5384,"user":"e84cb3e0-5b98-4543-816e-a3570ba72e05","date":"2017-04-28 18:19:44","func_code":"def reverse_list(l):\n if len(l) == 0:\n return []\n else:\n return [l[-1]] + reverse_list(l[:-1])","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} -{"submission_id":37505,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 18:56:32","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21978,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:09:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21616,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:09:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":37505,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 18:56:32","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21978,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:09:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21616,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:09:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":39461,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:09:52","func_code":"def minimum(a):\n if len(a) == 1:\n return a\n b = max(a)\n a.replace(b, '')\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":28618,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:11:11","func_code":"def minimum(a):\n if len(a) == 1:\n return a\n b = max(a)\n a = [c for c in a if c != b]\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":false} {"submission_id":40125,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 19:11:42","func_code":"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)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6445,8 +5893,8 @@ {"submission_id":23935,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 20:19:54","func_code":"def count_letters(s):\n b = s.index(s[-1])\n s = ''\n try:\n if s == '':\n return b\n except IndexError:\n return 0\n return count_letters(s)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":21110,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 20:20:14","func_code":"def count_letters(s):\n b = s.index(s[-1]) + 1\n s = ''\n try:\n if s == '':\n return b\n except IndexError:\n return 0\n return count_letters(s)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} {"submission_id":26953,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 20:21:02","func_code":"def count_letters(s):\n try:\n b = s.index(s[-1]) + 1\n except IndexError:\n return 0\n s = ''\n if s == '':\n return b\n return count_letters(s)","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":false} -{"submission_id":8237,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 20:50:38","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":24549,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 20:50:38","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":8237,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 20:50:38","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":24549,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 20:50:38","func_code":"def power(a, b):\n return a ** b","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":13869,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 20:52:13","func_code":"def count_letters(s):\n n = 0\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":11089,"user":"3e9f1e04-e9fd-4164-8fa5-c7feb1dcc1f5","date":"2017-04-28 20:53:18","func_code":"def count_letters(s):\n n = 0\n print(s)\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} {"submission_id":20688,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 20:53:44","func_code":"def minimum(l):\n biggest = l[0]\n for c in l:\n if c < biggest:\n biggest = c\n return biggest","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} @@ -6469,11 +5917,11 @@ {"submission_id":7936,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 21:10:33","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":37742,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 21:17:08","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += j\n a[p], a[i] = a[i], a[p]\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} {"submission_id":22986,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 21:19:42","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += j\n a[p], a[i] = a[i], a[p]\n i += 1\n return a","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":false} -{"submission_id":8221,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:07","func_code":"def power():\n if x == 0:\n return 1\n return 2 * power(x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":5456,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:38","func_code":"def power(x, n):\n if x == 0:\n return 1\n return n * power(x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":30049,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:59","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":32870,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:27:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":6945,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:27:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":8221,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:07","func_code":"def power():\n if x == 0:\n return 1\n return 2 * power(x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":5456,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:38","func_code":"def power(x, n):\n if x == 0:\n return 1\n return n * power(x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":30049,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:20:59","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":32870,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:27:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":6945,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:27:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":21961,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2017-04-28 21:29:27","func_code":"def minimum(l, m=None):\n if not len(l):\n return m\n if not m or l[0] < m:\n return minimum(l[1:], l[0])\n return minimum(l[1:], m)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":28876,"user":"91bbbbbf-cad8-4507-9c4d-c7cfe0ebc210","date":"2017-04-28 21:29:27","func_code":"def minimum(l, m=None):\n if not len(l):\n return m\n if not m or l[0] < m:\n return minimum(l[1:], l[0])\n return minimum(l[1:], m)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":38391,"user":"f0b2f578-ae0f-4ddc-94e9-204708d09f37","date":"2017-04-28 21:32:01","func_code":"def selectionsort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selectionsort","assignment_id":"selectionsort","academic_year":2016,"module":"ca117","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selectionsort([])==None and selectionsort([])==None and selectionsort([0])==None and selectionsort([0])==None","correct":true} @@ -6499,8 +5947,8 @@ {"submission_id":34670,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-04-28 21:59:41","func_code":"def reverse_list(l, ding=None):\n if not ding:\n ding = []\n if not l:\n return ding\n ding.append(l.pop())\n return reverse_list(l, ding)","func_name":"reverse_list","assignment_id":"reverse_recur","academic_year":2016,"module":"ca117","description":"Recursively reverse a list of elements.","test":"assert reverse_list([])==[] and reverse_list([0])==[0] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457, 85, -74, -10050, 787, -3])==[-3, 787, -10050, -74, 85, -109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650] and reverse_list([0, 0])==[0, 0] and reverse_list([85, -74, -10050, 787, 9650, 12103, -1947378123, -109345868112896702250879906349988323457, -3])==[-3, -109345868112896702250879906349988323457, -1947378123, 12103, 9650, 787, -10050, -74, 85] and reverse_list([85, -74, -10050, 787, -3, 9650, 12103, -1947378123, -109345868112896702250879906349988323457])==[-109345868112896702250879906349988323457, -1947378123, 12103, 9650, -3, 787, -10050, -74, 85]","correct":true} {"submission_id":18766,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:54","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":27608,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:54","func_code":"def minimum(a):\n if len(a) == 1:\n return a[0]\n if a[0] < a[1]:\n a.remove(a[1])\n return minimum(a)\n else:\n a.remove(a[0])\n return minimum(a)","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} -{"submission_id":30362,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:59","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":4735,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:59","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":30362,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:59","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":4735,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 21:59:59","func_code":"def power(m, n):\n if n == 0:\n return 1\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":18870,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 22:00:04","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":23473,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 22:00:04","func_code":"def maximum(a):\n if len(a) == 1:\n return a[0]\n if a[0] > a[1]:\n a.remove(a[1])\n return maximum(a)\n else:\n a.remove(a[0])\n return maximum(a)","func_name":"maximum","assignment_id":"maximum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":34770,"user":"427cdab9-477f-4fb3-92b0-bf5eef785c90","date":"2017-04-28 22:00:08","func_code":"def count_letters(s):\n n = 0\n if not s:\n return 0\n else:\n n += 1\n return n + count_letters(s[1:])","func_name":"count_letters","assignment_id":"count_letters","academic_year":2016,"module":"ca117","description":"Return the number of lettres in a string.","test":"assert count_letters('')==0 and count_letters('0')==1 and count_letters('##')==2 and count_letters('t')==1 and count_letters('fqfseqfseqsse')==13","correct":true} @@ -6578,49 +6026,42 @@ {"submission_id":31233,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:52:06","func_code":"def minimum(lst):\n if len(lst) == 1:\n return lst[-1]\n elif lst[0] < lst[-1]:\n return minimum(lst[:-1])\n elif lst[0] > lst[-1]:\n return minimum(lst[1:])","func_name":"minimum","assignment_id":"minimum","academic_year":2016,"module":"ca117","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","correct":true} {"submission_id":31023,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:17","func_code":"def quicksort(l, p, r):\n if r <= p:\n return\n q = j = p\n while j < r:\n if l[j] <= l[r]:\n l[q], l[j] = l[j], l[q]\n q += 1\n j += 1\n l[q], l[r] = l[r], l[q]\n quicksort(l, p, q - 1)\n quicksort(l, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":18910,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:17","func_code":"def quicksort(l, p, r):\n if r <= p:\n return\n q = j = p\n while j < r:\n if l[j] <= l[r]:\n l[q], l[j] = l[j], l[q]\n q += 1\n j += 1\n l[q], l[r] = l[r], l[q]\n quicksort(l, p, q - 1)\n quicksort(l, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":14379,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":25679,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":21561,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":14379,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":25679,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":21561,"user":"4788f2f7-8b97-41a8-88ee-697183f85246","date":"2017-04-28 23:53:22","func_code":"def power(n, x):\n if x == 0:\n return 1\n return n * power(n, x - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":33921,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-28 23:58:10","func_code":"def quicksort(l, p, r):\n if r <= p:\n return\n q = j = p\n while j < r:\n if l[j] <= l[r]:\n l[q], l[j] = l[j], l[q]\n q += 1\n j += 1\n l[q], l[r] = l[r], l[q]\n quicksort(l, p, q - 1)\n quicksort(l, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":40715,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-28 23:58:10","func_code":"def quicksort(l, p, r):\n if r <= p:\n return\n q = j = p\n while j < r:\n if l[j] <= l[r]:\n l[q], l[j] = l[j], l[q]\n q += 1\n j += 1\n l[q], l[r] = l[r], l[q]\n quicksort(l, p, q - 1)\n quicksort(l, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":3935,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-04-28 23:58:10","func_code":"def quicksort(l, p, r):\n if r <= p:\n return\n q = j = p\n while j < r:\n if l[j] <= l[r]:\n l[q], l[j] = l[j], l[q]\n q += 1\n j += 1\n l[q], l[r] = l[r], l[q]\n quicksort(l, p, q - 1)\n quicksort(l, q + 1, r)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} -{"submission_id":18620,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":38678,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":9188,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":18620,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":38678,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":9188,"user":"422fe752-ca84-4537-b250-7de556e6ee94","date":"2017-05-02 15:04:26","func_code":"def power(n, m):\n if m == 1:\n return n\n if m == 0:\n return 1\n return n ** m","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":35689,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:44:22","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n print(a)\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":14498,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:44:22","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":18006,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:44:22","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":3410,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:44:22","func_code":"def countdown(num):\n while num > 0:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":37314,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:50:50","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":17934,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:50:50","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n print(a)\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":36231,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:50:50","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} -{"submission_id":27515,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:50:50","func_code":"def countdown(num):\n while num > 0:\n print(num)\n num = num - 1\n time.sleep(0.1)\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":28681,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:56:43","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":20934,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:56:43","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":33599,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:56:43","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n print(a)\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":32303,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:56:43","func_code":"def countdown(num):\n while num > 0:\n print(num)\n num = num - 1\n time.sleep(0.1)\n time.sleep(0.1)\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":724,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:58:58","func_code":"def countdown(num):\n while num > 0:\n print(num)\n num = num - 1\n time.sleep(0.1)\n time.sleep(0.1)\n return 'LIFT OFF!'","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":13466,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:58:58","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":14231,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:58:58","func_code":"def fibonacci(n):\n a = 0\n b = 1\n for i in range(0, n):\n print(a)\n temp = a\n a = b\n b = temp + b\n return a","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":29693,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 13:58:58","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":14282,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":11202,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":20055,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} -{"submission_id":18865,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20691,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n fib = a + b\n a = b\n b = fib\n i += 1\n return fib","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":18167,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def countdown(num):\n while num >= 1:\n print(num)\n time.sleep(0.1)\n num = num - 1\n print('LIFT OFF!')","func_name":"countdown","assignment_id":"iterative08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":3560,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":16838,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":27169,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n fib = a + b\n a = b\n b = fib\n i += 1\n return fib","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":2436,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def search(word, letter):\n if letter in word:\n return True\n else:\n return False","func_name":"search","assignment_id":"search_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":23670,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def index(word, letter):\n i = 0\n while i < len(word):\n if letter not in word:\n return -1\n elif word[i] == letter:\n return i\n else:\n i = i + 1","func_name":"index","assignment_id":"index_iter","academic_year":2016,"module":"ca278","description":"Iteratively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0')==-1 and index('0','0')==0 and index('11','1')==0","correct":false} {"submission_id":4846,"user":"1caca58f-3988-4910-af7d-3a09c8ed5647","date":"2017-05-04 14:17:03","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n a = 0\n b = 1\n i = 2\n while i <= n:\n fib = a + b\n a = b\n b = fib\n i += 1\n return fib","func_name":"fibonacci","assignment_id":"fibonacci_iter","academic_year":2016,"module":"ca278","description":"Iteratively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} -{"submission_id":25256,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:27:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26717,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:27:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24654,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":40874,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":925,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":35711,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":25256,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:27:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":26717,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:27:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":24654,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":40874,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":925,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":35711,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:33:24","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":3251,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:43:35","func_code":"def reverse(a):\n a = a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":15604,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:47:16","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":22358,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 19:51:28","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} @@ -6637,22 +6078,19 @@ {"submission_id":27876,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-05-04 20:15:24","func_code":"def selection_sort(a):\n return sorted(a)","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":9423,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-05-09 11:17:23","func_code":"def swap_unique_keys_values(d):\n return dict([(v, k) for k, v in list(d.items()) if list(d.values()).\n count(v) == 1])","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} {"submission_id":31615,"user":"46954879-c4e4-4ce6-87d4-00184c62b522","date":"2017-05-09 11:17:23","func_code":"def swap_unique_keys_values(d):\n return dict([(v, k) for k, v in list(d.items()) if list(d.values()).\n count(v) == 1])","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} -{"submission_id":42421,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":11138,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":3060,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":32868,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":20189,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":38367,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} -{"submission_id":16888,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def countdown(num):\n if num == 0:\n print('LIFT OFF!')\n else:\n print(num)\n time.sleep(0.1)\n countdown(num - 1)","func_name":"countdown","assignment_id":"recursive08.py_ca278_countdown","academic_year":2016,"module":"ca278","description":null,"test":"","correct":true} {"submission_id":17804,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def fibonacci(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca278","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":true} {"submission_id":10717,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":19714,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} {"submission_id":2296,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def index(str, letter, pos):\n if pos == len(str):\n return -1\n elif str[pos] == letter:\n return pos\n else:\n return index(str, letter, pos + 1)","func_name":"index","assignment_id":"index_recur","academic_year":2016,"module":"ca278","description":"Recursively search for the position of letter in str, return -1 if it is not there.","test":"assert index('','0',0)==-1 and index('0','0',0)==0 and index('a','8',0)==-1 and index('tV2','2',0)==2","correct":true} {"submission_id":18157,"user":"b8085080-0ead-4e7d-88a1-f66d565aea2e","date":"2017-05-09 21:34:46","func_code":"def search(str, letter):\n if str == '':\n return False\n elif str[0] == letter:\n return True\n else:\n return search(str[1:], letter)","func_name":"search","assignment_id":"search_recur","academic_year":2016,"module":"ca278","description":"Recursively search for a letter in a string","test":"assert search('','0')==False and search('0','0')==True and search('ERFE0Rfsef','0')==True and search('ERFERfsef0','0')==True and search('','a')==False and search('cbzeycuzbvyzuvb','a')==False and search('cbsducsvdbcyts','c')==True and search('dbzeducvbzy','y')==True and search('xqvsgxcutvy','u')==True","correct":true} -{"submission_id":35066,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:40:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":4685,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":652,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} -{"submission_id":38369,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power_102.py_ca117_power","academic_year":2016,"module":"ca117","description":null,"test":"","correct":true} +{"submission_id":35066,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:40:48","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":false} +{"submission_id":4685,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":652,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} +{"submission_id":38369,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-12 22:41:12","func_code":"def power(m, n):\n if n == 0:\n return 1\n else:\n return m * power(m, n - 1)","func_name":"power","assignment_id":"power","academic_year":2016,"module":"ca117","description":"Raise m to the power of n.","test":"assert power(0,0)==1 and power(62,4)==14776336 and power(-14012,0)==1","correct":true} {"submission_id":2158,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-05-12 23:14:14","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":13308,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-05-12 23:14:14","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} {"submission_id":38126,"user":"fc73b043-0c96-4ce3-8b8f-2c4c98785aa6","date":"2017-05-12 23:14:14","func_code":"def partition(A, p, r):\n q = j = p\n while j < r:\n if A[j] <= A[r]:\n A[q], A[j] = A[j], A[q]\n q += 1\n j += 1\n A[q], A[r] = A[r], A[q]\n return q\n\n\ndef 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)","func_name":"quicksort","assignment_id":"quicksort","academic_year":2016,"module":"ca117","description":"Sort a list by recursively partitionioning list until sorted.","test":"assert quicksort([],0,0)==None and quicksort([],0,0)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 4, 3, 2, 1],0,4)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5, 5, 5, 5],0,3)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None and quicksort([5675, 564, 987, 154132, 8976, 0, -16221, 87526, 9826732986],0,8)==None","correct":true} @@ -6677,47 +6115,47 @@ {"submission_id":12824,"user":"f5dc8223-cf9e-429f-aae8-350d82da1982","date":"2017-05-26 12:07:52","func_code":"def selection_sort(a):\n for i in range(len(a)):\n mini = min(a[i:])\n min_index = a[i:].index(mini)\n a[i + min_index] = a[i]\n a[i] = mini\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":23102,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-28 01:26:33","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} {"submission_id":21899,"user":"a49f3af8-fb92-43d5-945c-abc11916e319","date":"2017-05-28 01:26:33","func_code":"def fibonacci(n):\n if n == 0 or n == 1:\n return 1\n else:\n return fibonacci(n - 1) + fibonacci(n - 2)","func_name":"fibonacci","assignment_id":"fibonacci_recur","academic_year":2016,"module":"ca117","description":"Recursively compute the value of the fibonacci series at position n.","test":"assert fibonacci(0)==0 and fibonacci(1)==1 and fibonacci(2)==1 and fibonacci(10)==55 and fibonacci(23)==28657","correct":false} -{"submission_id":15927,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31765,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37525,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10598,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18466,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4216,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8609,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def square_area(x, y):\n area = x * y\n if 0 <= area:\n return area\n else:\n return -area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32860,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11483,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":859,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31590,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6952,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20910,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36936,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5921,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6127,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28837,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38533,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28204,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14863,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13425,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22523,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26447,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9227,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":15927,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31765,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":37525,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":10598,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:44:32","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":18466,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4216,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":8609,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def square_area(x, y):\n area = x * y\n if 0 <= area:\n return area\n else:\n return -area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} +{"submission_id":32860,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":11483,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:47:19","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":859,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":31590,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def circle_area(r):\n return r * r * 3.141","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":6952,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":20910,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":36936,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:48:52","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":5921,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":6127,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":28837,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":38533,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":28204,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":14863,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_perimeter(x):\n return x * 4","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":13425,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_area(r):\n return r * r * 3.14","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":22523,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def square_area(x):\n area = x * x\n return area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":26447,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def circle_circumference(r):\n return 2 * 3.14 * r","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":9227,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-05 10:49:10","func_code":"def rectangle_perimeter(x, y):\n return 2 * x + 2 * y","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} {"submission_id":2336,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-13 14:17:19","func_code":"def reverse(a):\n print(a[::-1])","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":false} {"submission_id":16,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-13 14:19:22","func_code":"def reverse(a):\n print(a.reverse())","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":false} {"submission_id":29153,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-13 14:19:39","func_code":"def reverse(a):\n return a.reverse()","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":false} {"submission_id":3867,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-13 14:20:01","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":36462,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-13 14:20:01","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":9604,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35587,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11708,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15806,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:55:58","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7532,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:56:16","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28657,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:58:56","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18439,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:59:43","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16883,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:59:43","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37667,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4080,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8733,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":14569,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":9604,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35587,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11708,"user":"03141ef3-f364-4b7c-9f52-990a173ac162","date":"2017-07-14 15:50:03","func_code":"def square_area(x):\n return x ** 2","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15806,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:55:58","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":7532,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:56:16","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":28657,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:58:56","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":18439,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:59:43","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":16883,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 12:59:43","func_code":"def double(x):\n y = x * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37667,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4080,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def area(r):\n y = pi * r * r\n return y","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":8733,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":14569,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:06:49","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":5911,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:13:21","func_code":"def swap(a, i, j):\n y = a[j]\n a[j] = a[i]\n a[i] = y\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":29533,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:13:21","func_code":"def swap(a, i, j):\n y = a[j]\n a[j] = a[i]\n a[i] = y\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":15931,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-07-19 13:13:21","func_code":"def swap(a, i, j):\n y = a[j]\n a[j] = a[i]\n a[i] = y\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -6757,14 +6195,14 @@ {"submission_id":27040,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-07-30 00:09:23","func_code":"def swap_unique_keys_values(d):\n dictionary = {}\n unique = []\n deli = []\n for k, v in list(d.items()):\n unique.append(v)\n for v in unique:\n if unique.count(v) > 1:\n deli.append(v)\n for v in unique:\n try:\n if v in deli:\n del unique[v]\n except:\n continue\n for k, v in list(d.items()):\n if v in unique:\n dictionary[v] = k\n return dictionary","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":false} {"submission_id":29070,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-07-30 01:10:18","func_code":"def swap_unique_keys_values(d):\n dictionary = {}\n counter = []\n new = []\n for k, v in list(d.items()):\n counter.append(v)\n for c in counter:\n if counter.count(c) == 1:\n new.append(c)\n for k, v in list(d.items()):\n if v in new:\n dictionary[v] = k\n return dictionary","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} {"submission_id":30599,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-07-30 01:10:18","func_code":"def swap_unique_keys_values(d):\n dictionary = {}\n counter = []\n new = []\n for k, v in list(d.items()):\n counter.append(v)\n for c in counter:\n if counter.count(c) == 1:\n new.append(c)\n for k, v in list(d.items()):\n if v in new:\n dictionary[v] = k\n return dictionary","func_name":"swap_unique_keys_values","assignment_id":"swap_unique_keys_values","academic_year":2016,"module":"ca117","description":"Swap the keys of a dictionary with its unique values.","test":"assert swap_unique_keys_values({})=={} and swap_unique_keys_values({'1': 'a'})=={'a': '1'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'c', '4': 'd'})=={'a': '1', 'b': '2', 'c': '3', 'd': '4'} and swap_unique_keys_values({'1': 'a', '2': 'b', '3': 'a'})=={'b': '2'}","correct":true} -{"submission_id":4678,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:12:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39342,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:12:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22209,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19450,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20644,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":598,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":14132,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4713,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":4678,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:12:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":39342,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:12:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":22209,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":19450,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":20644,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":598,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":14132,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":4713,"user":"11fcbbcf-716f-4e92-ab7c-407d4712c9e8","date":"2017-08-11 14:16:00","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":15821,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-18 15:17:58","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":40507,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-18 15:17:58","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":25705,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-18 15:19:28","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} @@ -6776,26 +6214,26 @@ {"submission_id":13173,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-08-18 22:31:23","func_code":"def swap(a, i='', j=''):\n if i == '' and j == '':\n i = 0\n j = len(a) - 1\n k = 0\n while k < len(a) \/ 2:\n a[i], a[j] = a[j], a[i]\n i += 1\n j -= 1\n k += 1\n else:\n a[i], a[j] = a[j], a[i]\n return a\n\n\ndef reverse(a):\n return swap(a)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":16424,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-08-18 22:31:23","func_code":"def swap(a, i='', j=''):\n if i == '' and j == '':\n i = 0\n j = len(a) - 1\n k = 0\n while k < len(a) \/ 2:\n a[i], a[j] = a[j], a[i]\n i += 1\n j -= 1\n k += 1\n else:\n a[i], a[j] = a[j], a[i]\n return a\n\n\ndef reverse(a):\n return swap(a)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":36000,"user":"a72d6534-1b96-4a41-95a5-f71f23e2bd99","date":"2017-08-18 22:31:23","func_code":"def swap(a, i='', j=''):\n if i == '' and j == '':\n i = 0\n j = len(a) - 1\n k = 0\n while k < len(a) \/ 2:\n a[i], a[j] = a[j], a[i]\n i += 1\n j -= 1\n k += 1\n else:\n a[i], a[j] = a[j], a[i]\n return a\n\n\ndef reverse(a):\n return swap(a)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":20758,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:12","func_code":"def double(n):\n return n * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19840,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:50","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":42131,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:50","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16466,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:03:28","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18398,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:03:28","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4038,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":30041,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":40876,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6239,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":20758,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:12","func_code":"def double(n):\n return n * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":19840,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:50","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":42131,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 15:59:50","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":16466,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:03:28","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":18398,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:03:28","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":4038,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":30041,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":40876,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":6239,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:04:09","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":5647,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:09:31","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":22005,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:09:31","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":10359,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:14:32","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = j + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":8227,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:37:26","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":27779,"user":"fe81d9d2-29fa-4a6b-abc0-109c9697b557","date":"2017-08-19 16:37:26","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":36664,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:27:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9828,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:27:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37853,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def area(radius):\n return pi * radius ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25057,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def area(radius):\n return pi * radius ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19005,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def circumference(radius):\n return 2 * pi * radius","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":17434,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def circumference(radius):\n return 2 * pi * radius","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":36664,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:27:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":9828,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:27:43","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37853,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def area(radius):\n return pi * radius ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":25057,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def area(radius):\n return pi * radius ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":19005,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def circumference(radius):\n return 2 * pi * radius","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":17434,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:30:37","func_code":"def circumference(radius):\n return 2 * pi * radius","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":37769,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:33:25","func_code":"def reverse():\n a = a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":6530,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:33:45","func_code":"def reverse(a):\n a = a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":34372,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:35:15","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} @@ -6808,45 +6246,45 @@ {"submission_id":3446,"user":"caddc359-e5b0-41d8-94ab-df712d5ea9ce","date":"2017-08-30 01:44:14","func_code":"def reverse(a):\n return a[::-1]","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":2858,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-10-02 10:34:10","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n i = i + 1\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":20395,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-10-02 10:34:10","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n i = i + 1\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":31887,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 13:36:52","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11211,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 13:36:52","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21974,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6350,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30238,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def circle_area(n):\n ca = 2 * 3.14 * n\n return cc","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22375,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def square_perimeter(n):\n sa = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32234,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42382,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def circle_area(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28663,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8098,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13068,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40398,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29338,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4884,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13057,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39817,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4314,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_area(n):\n ca = 3.14 * (n * n)\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17732,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28066,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25309,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_area(n):\n ca = 3.14 * (n * n)\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36265,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:04","func_code":"def square_area(n):\n sa = n + n\n return sa","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14349,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:19","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27241,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:19","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21130,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11730,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11099,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18300,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40893,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11512,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_perimeter(side):\n result = side * 4\n return result","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12192,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10983,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25243,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16140,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2080,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26454,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_perimeter(side):\n result = side * 4\n return result","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37222,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41185,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12938,"user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":"2017-10-02 14:19:55","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9621,"user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":"2017-10-02 14:19:55","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":31887,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 13:36:52","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11211,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 13:36:52","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":21974,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":6350,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":30238,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def circle_area(n):\n ca = 2 * 3.14 * n\n return cc","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":22375,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 13:59:40","func_code":"def square_perimeter(n):\n sa = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":32234,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":42382,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def circle_area(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":28663,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":8098,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:10","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":13068,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":40398,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":29338,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":4884,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":13057,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":39817,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def square_perimeter(n):\n sp = n * 4\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4314,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_area(n):\n ca = 3.14 * (n * n)\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":17732,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":28066,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def rectangle_perimeter(n, a):\n rp = n + n + a + a\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":25309,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:00:57","func_code":"def circle_area(n):\n ca = 3.14 * (n * n)\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":36265,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:04","func_code":"def square_area(n):\n sa = n + n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} +{"submission_id":14349,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:19","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27241,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-02 14:01:19","func_code":"def square_area(n):\n sa = n * n\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":21130,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":11730,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11099,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":18300,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:09:44","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":40893,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11512,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_perimeter(side):\n result = side * 4\n return result","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":12192,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":10983,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_area(side):\n result = side * side\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":25243,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":16140,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":2080,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_circumference(radius):\n result = 2 * 3.14 * radius\n return result","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":26454,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def square_perimeter(side):\n result = side * 4\n return result","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":37222,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def rectangle_perimeter(length, height):\n result = 2 * length + 2 * height\n return result","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41185,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-02 14:11:06","func_code":"def circle_area(radius):\n result = 3.14 * (radius * radius)\n return result","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":12938,"user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":"2017-10-02 14:19:55","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":9621,"user":"2d5a247c-29b2-4cc2-a956-669a2206edc8","date":"2017-10-02 14:19:55","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":4943,"user":"058b18f6-cf34-4afc-8b4e-0f7705be27f0","date":"2017-10-02 14:30:16","func_code":"def sort(a):\n i = 0","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":20535,"user":"058b18f6-cf34-4afc-8b4e-0f7705be27f0","date":"2017-10-02 14:36:34","func_code":"def sort(a):\n i = 0\n p = 0\n while i < len(a):\n if a[i] < a[p]:\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":33789,"user":"058b18f6-cf34-4afc-8b4e-0f7705be27f0","date":"2017-10-02 14:37:36","func_code":"def sort(a):\n i = 0\n p = 0\n while i < len(a):\n if a[i] > a[p]:\n tmp = a[i]\n a[i] = a[p]\n a[p] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} @@ -7047,40 +6485,40 @@ {"submission_id":1125,"user":"161bb8fd-c916-4d4e-a439-1dce6fc8f542","date":"2017-10-03 15:43:33","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":12158,"user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":"2017-10-03 15:43:55","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":9050,"user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":"2017-10-03 15:43:55","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":13717,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:35:41","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27021,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:35:41","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27755,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17475,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10373,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33874,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28950,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4718,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34952,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":24637,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25564,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16630,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11073,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42197,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22972,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38992,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42484,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:08:25","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40079,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:10:47","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6424,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29684,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29962,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25950,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1048,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:53","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34168,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:53","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41539,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31939,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4604,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def rectangle_perimeter(a, b):\n per = a * 2 + b * 2\n return per","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12630,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def rectangle_perimeter(a, b):\n per = a * 2 + b * 2\n return per","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29483,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40468,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13293,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42343,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5218,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28051,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":13717,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:35:41","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27021,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:35:41","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":27755,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":17475,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":10373,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":33874,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:45:02","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":28950,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":4718,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":34952,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_perimeter(n):\n sq = n + n + n + n\n return sq","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":24637,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_area(n):\n sq = 3.14 * n ** 2\n return sq","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":25564,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":16630,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":11073,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def rectangle_perimeter(n, b):\n sq = n + n + b + b\n return sq","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":42197,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22972,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def circle_circumference(n):\n sq = 2 * 3.14 * n\n return sq","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":38992,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-03 17:48:05","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":42484,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:08:25","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":40079,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:10:47","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":6424,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":29684,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29962,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":25950,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:38","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":1048,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:53","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":34168,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:11:53","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":41539,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":31939,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4604,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def rectangle_perimeter(a, b):\n per = a * 2 + b * 2\n return per","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":12630,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def rectangle_perimeter(a, b):\n per = a * 2 + b * 2\n return per","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":29483,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":40468,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_area(side):\n sq = side * side\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":13293,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_area(r):\n cir = 3.14 * (r * r)\n return cir","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":42343,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def circle_circumference(r):\n circum = 2 * 3.14 * r\n return circum","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":5218,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":28051,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-10-03 20:13:59","func_code":"def square_perimeter(side):\n perimeter = side * 4\n return perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":28444,"user":"f40d6a8a-0620-4bda-8c98-4c952edace05","date":"2017-10-04 11:14:35","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":6574,"user":"f40d6a8a-0620-4bda-8c98-4c952edace05","date":"2017-10-04 11:14:35","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":19552,"user":"415d4431-1b98-4241-a978-02dc16bf556e","date":"2017-10-04 11:17:40","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} @@ -7099,52 +6537,52 @@ {"submission_id":8141,"user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":"2017-10-04 11:30:25","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":32655,"user":"0f1cbd69-016d-4739-b232-fed37e5676ad","date":"2017-10-04 11:30:25","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":5873,"user":"18ee9049-5f05-43b2-ac53-518e3b23c3c3","date":"2017-10-04 11:34:23","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n tmp = i\n while i < len(a):\n if a[i] < a[tmp]:\n tmp = i\n i = i + 1\n return tmp\n\n\ndef sort(a):\n j = 0\n while j < len(a):\n p = find_position_of_smallest(a, j)\n swap(a, j, p)\n j = j + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":11860,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10698,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1174,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16435,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":11860,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":10698,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":1174,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16435,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:34:44","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":41055,"user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":"2017-10-04 11:34:50","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":20367,"user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":"2017-10-04 11:35:02","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":38026,"user":"18ee9049-5f05-43b2-ac53-518e3b23c3c3","date":"2017-10-04 11:35:11","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n tmp = i\n while i < len(a):\n if a[i] < a[tmp]:\n tmp = i\n i = i + 1\n return tmp\n\n\ndef sort(a):\n j = 0\n while j < len(a):\n p = find_position_of_smallest(a, j)\n swap(a, j, p)\n j = j + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":21349,"user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":"2017-10-04 11:37:03","func_code":"def sort(a):\n i = 0\n while i < len(a):\n j = i\n k = i + 1\n while k < len(a):\n if a[k] < a[j]:\n j = k\n k = k + 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":25286,"user":"4490d043-a9e0-48aa-a62c-ddcc67ed7fba","date":"2017-10-04 11:37:03","func_code":"def sort(a):\n i = 0\n while i < len(a):\n j = i\n k = i + 1\n while k < len(a):\n if a[k] < a[j]:\n j = k\n k = k + 1\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":29055,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30817,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27135,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38206,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":29055,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":30817,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":27135,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":38206,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:37:38","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":5167,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-04 11:38:03","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":15049,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:38:26","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15342,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:38:26","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29434,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37263,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32407,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2749,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41913,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1308,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26943,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23117,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34149,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23864,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":15049,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:38:26","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15342,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:38:26","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29434,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37263,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":32407,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2749,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":41913,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:39:40","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":1308,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":26943,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":23117,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n area = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":34149,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":23864,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:40:15","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} {"submission_id":33497,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:40:58","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n i = 0\n while i < len(a):\n if a[i] < a[j]:\n i = i + 1\n return i\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":37114,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:41:18","func_code":"def square_area(n):\n sq = n * n\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":37114,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:41:18","func_code":"def square_area(n):\n sq = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} {"submission_id":2564,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:41:31","func_code":"def sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":21944,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-04 11:41:33","func_code":"def sort(a):\n p = i + 1\n i = i + 2\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":12930,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:42:37","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = p + 1\n while i < len(a):\n if a[j] < a[p]:\n p = j\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":38868,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:42:49","func_code":"def square_area(n):\n sq = n * n\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":38868,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:42:49","func_code":"def square_area(n):\n sq = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} {"submission_id":28544,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:43:04","func_code":"def sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":27532,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:14","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":14963,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:14","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":11550,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":967,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23391,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33007,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40547,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n perimeter = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23389,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:43:26","func_code":"def square_area(n):\n results = n * n\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":11550,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":967,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":23391,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":33007,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":40547,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:43:18","func_code":"def rectangle_perimeter(x1, y1, x2, y2):\n dx = x1 - x2\n dy = y1 - y2\n perimeter = dx * dy\n if 0 <= area:\n return area","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":23389,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:43:26","func_code":"def square_area(n):\n results = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} {"submission_id":14321,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-04 11:43:35","func_code":"def sort(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":7591,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:43:38","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = p + 1\n while i < len(a):\n if a[p] < a[j]:\n j = p\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":39007,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:43:58","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = p + 1\n while i < len(a):\n if a[p] < a[j]:\n j = p\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":23631,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:44:26","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23359,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:44:26","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":23631,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:44:26","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":23359,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 11:44:26","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":39912,"user":"06043f63-bd06-4b6c-9b40-184b4eca2307","date":"2017-10-04 11:44:31","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":485,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:45:00","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = p + 1\n while i < len(a):\n if a[j] < a[p]:\n j = p\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":24594,"user":"06043f63-bd06-4b6c-9b40-184b4eca2307","date":"2017-10-04 11:45:04","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i += 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} @@ -7159,31 +6597,31 @@ {"submission_id":1682,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:47:53","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":31927,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:47:55","func_code":"def sort(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n i = i + 1\n tmp = a[p]\n a[p] = a[j]\n a[j] = tmp","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":14133,"user":"d8aa4bbd-4524-4751-9dce-5cd1ea64d8cb","date":"2017-10-04 11:48:02","func_code":"def sort(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":11016,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35247,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9012,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18289,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1131,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * x1 * y1\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41187,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31345,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18787,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19771,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40144,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * x1 * y1\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":11016,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35247,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":9012,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":18289,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":1131,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:18","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * x1 * y1\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":41187,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":31345,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18787,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":19771,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":40144,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:48:36","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * x1 * y1\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} {"submission_id":20102,"user":"18ee9049-5f05-43b2-ac53-518e3b23c3c3","date":"2017-10-04 11:48:37","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n tmp = i\n while i < len(a):\n if a[i] < a[tmp]:\n tmp = i\n i = i + 1\n return tmp\n\n\ndef sort(a):\n j = 0\n while j < len(a):\n p = find_position_of_smallest(a, j)\n swap(a, j, p)\n j = j + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":3605,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6776,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":87,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(n + r)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14137,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39044,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":3605,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":6776,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":87,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(n + r)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":14137,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":39044,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:48:41","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":40707,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:48:46","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":40694,"user":"e5f35cd7-8337-4a68-bda3-4164a982feae","date":"2017-10-04 11:48:46","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1\n return p","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":22776,"user":"fd20892b-e35f-43bc-b82d-e6db9320b8ae","date":"2017-10-04 11:49:53","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_postion_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":42380,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:50:22","func_code":"def sort(a):\n i = 0\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n i = i + 1\n tmp = a[p]\n a[p] = a[j]\n a[j] = tmp","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":26507,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6253,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * (x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34012,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17918,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39562,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":26507,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":6253,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * (x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":34012,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":17918,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":39562,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:50:48","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} {"submission_id":3080,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:50:56","func_code":"def sort(a):\n i = 0\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n i = i + 1\n tmp = a[p]\n a[i] = a[j]\n a[j] = tmp","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":14395,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:51:32","func_code":"def sort(a):\n i = 0\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":5304,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:51:54","func_code":"def sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} @@ -7194,45 +6632,45 @@ {"submission_id":20967,"user":"a93c9eeb-104a-4436-bd9a-c2e65d311d9e","date":"2017-10-04 11:54:03","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n i = i + 1\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":30320,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:54:13","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":25094,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:54:26","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":31506,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32861,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22853,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36609,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34384,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19646,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16053,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41823,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22414,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * r * r * r\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2409,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":31506,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":32861,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":22853,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":36609,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":34384,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:31","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":19646,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":16053,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":41823,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":22414,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * r * r * r\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":2409,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:55:58","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":10511,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:56:08","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n j = i\n while i < len(a):\n if a[i] < a[j]:\n j = i\n i = i + 1\n return j\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":26181,"user":"db184e8e-e02b-4772-b74b-547b88d21933","date":"2017-10-04 11:56:08","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n j = i\n while i < len(a):\n if a[i] < a[j]:\n j = i\n i = i + 1\n return j\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n k = find_position_of_smallest(a, i)\n swap(a, i, k)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":15450,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:56:17","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n find_position_of_smallest(a, i)\n swap(a, i, j)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":8732,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:56:47","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n find_position_of_smallest(a, i)\n swap(a, i, j)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":9295,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8977,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41209,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * r * r * r\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38095,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":19828,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":9295,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":8977,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":41209,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def square_perimeter(r):\n sqaure_perimeter = r * r * r * r\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":38095,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def square_area(r):\n square_area = r * r\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":19828,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:56:59","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} {"submission_id":34973,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 11:57:10","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n find_position_of_smallest(a, i)\n swap(a, i, j)\n j = j + 1\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":23746,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18193,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35424,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16207,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * (x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1088,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":23746,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":18193,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":35424,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":16207,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = 2 * (x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":1088,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:57:18","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":31394,"user":"dcc2a3d3-d90d-4640-9797-7d037bff9027","date":"2017-10-04 11:57:34","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":7461,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42480,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4763,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5735,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35390,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def square_perimeter(n):\n sqaure_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":7461,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":42480,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":4763,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":5735,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":35390,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:58:09","func_code":"def square_perimeter(n):\n sqaure_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} {"submission_id":37305,"user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":"2017-10-04 11:58:28","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort():\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":14153,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-04 11:58:42","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":14305,"user":"762404df-24ca-44ff-9c98-3f841fa7faab","date":"2017-10-04 11:58:42","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":23449,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4954,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = (2)(x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9677,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22525,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":34010,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":23449,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":4954,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def rectangle_perimeter(x1, y1):\n rectancle_perimeter = (2)(x1 * y1)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":9677,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22525,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":34010,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 11:58:54","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} {"submission_id":20790,"user":"12d00542-0a26-4a35-a142-ccd508484c14","date":"2017-10-04 11:59:04","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":11807,"user":"12d00542-0a26-4a35-a142-ccd508484c14","date":"2017-10-04 11:59:04","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":4134,"user":"12d00542-0a26-4a35-a142-ccd508484c14","date":"2017-10-04 11:59:04","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} @@ -7244,23 +6682,23 @@ {"submission_id":27929,"user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":"2017-10-04 11:59:41","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":10651,"user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":"2017-10-04 11:59:41","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":17043,"user":"f1f904a5-bcf8-461e-8792-f0a8d0db3f47","date":"2017-10-04 11:59:41","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":1270,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def square_perimeter(n):\n sqaure_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27714,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30711,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15236,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31791,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":1270,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def square_perimeter(n):\n sqaure_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":27714,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":30711,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":15236,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":31791,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 11:59:43","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} {"submission_id":30965,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:00:00","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n while i < len(a):\n find_position_of_smallest(a, i)\n swap(a, i, j)\n j = j + 1\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":17766,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:00:36","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n while i < len(a):\n find_position_of_smallest(a, i)\n swap(a, i, j)\n i = i + 1\n j = i","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":29160,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14684,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def square_perimeter(n):\n sqaure_perimeter = (4)(n)\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6811,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29729,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1902,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13716,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8639,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41770,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7176,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11636,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def rectangle_perimeter(r, n):\n rectancle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":29160,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":14684,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def square_perimeter(n):\n sqaure_perimeter = (4)(n)\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":6811,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29729,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":1902,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:00:46","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":13716,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":8639,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":41770,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":7176,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":11636,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:00:48","func_code":"def rectangle_perimeter(r, n):\n rectancle_perimeter = (2)(r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} {"submission_id":15119,"user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":"2017-10-04 12:01:02","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n while i < len(a):\n find_position_of_smallest(a, i).swap(a)\n swap(a, i, j).sort(a)","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":13842,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:01:06","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n while i < len(a):\n find_position_of_smallest(a, i)\n swap(a, i, j)\n j = j + 1\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":4860,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:01:32","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n j = i + 1\n while i < len(a):\n find_position_of_smallest(a, i)\n swap(a, i, j)\n i = i + 1\n j = j + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} @@ -7275,47 +6713,47 @@ {"submission_id":7360,"user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":"2017-10-04 12:02:43","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n while i < len(a):\n if find_position_of_smallest(a, i).swap(a):\n swap(a, i, j).sort(a)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":23995,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:03:08","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, j)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":24082,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:03:11","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":12813,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4371,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7528,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40756,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8040,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1967,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_perimeter(n):\n square_perimeter = 4 * n\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40274,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32088,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7632,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_perimeter(n):\n square_perimeter = 4 * n\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38931,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":12813,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":4371,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":7528,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":40756,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":8040,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":1967,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_perimeter(n):\n square_perimeter = 4 * n\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":40274,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":32088,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":7632,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def square_perimeter(n):\n square_perimeter = 4 * n\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":38931,"user":"d6b9871a-67ab-4c5d-894e-eb5d53fae3d1","date":"2017-10-04 12:03:25","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} {"submission_id":34894,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:03:29","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":28673,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:03:33","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} -{"submission_id":27734,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def rectangle_perimeter(r, n):\n rectancle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42194,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25486,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15885,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31030,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":27734,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def rectangle_perimeter(r, n):\n rectancle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":42194,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":25486,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15885,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31030,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:03:43","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} {"submission_id":16772,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:03:54","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":18044,"user":"0ea9000e-74e5-4eea-8653-1bfeeae4aab1","date":"2017-10-04 12:03:54","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":18646,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:04:01","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":35063,"user":"639d0a36-d89c-469e-a1ae-4cadc99d8827","date":"2017-10-04 12:04:01","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":7718,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_perimeter(n):\n result = n + n + n + n\n return result","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26579,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_area(n):\n result = 3.14 * (n * n)\n return result","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2834,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def rectangle_perimeter(n, m):\n result = n + n + m + m\n return result","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29501,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40803,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_circumference(n):\n result = 2 * 3.14 * n\n return result","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27412,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15095,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def rectangle_perimeter(n, m):\n result = n + n + m + m\n return result","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":14919,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_circumference(n):\n result = 2 * 3.14 * n\n return result","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38750,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_area(n):\n result = 3.14 * (n * n)\n return result","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4520,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_perimeter(n):\n result = n + n + n + n\n return result","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33863,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20439,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16813,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31042,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29135,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31864,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":41227,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16960,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33961,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17938,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":7718,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_perimeter(n):\n result = n + n + n + n\n return result","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":26579,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_area(n):\n result = 3.14 * (n * n)\n return result","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":2834,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def rectangle_perimeter(n, m):\n result = n + n + m + m\n return result","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":29501,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":40803,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_circumference(n):\n result = 2 * 3.14 * n\n return result","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":27412,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":15095,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def rectangle_perimeter(n, m):\n result = n + n + m + m\n return result","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":14919,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_circumference(n):\n result = 2 * 3.14 * n\n return result","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":38750,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def circle_area(n):\n result = 3.14 * (n * n)\n return result","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4520,"user":"5c105474-42d8-4a95-a311-034a93c693c8","date":"2017-10-04 12:04:34","func_code":"def square_perimeter(n):\n result = n + n + n + n\n return result","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":33863,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":20439,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_circumference(r):\n circle_circumference = 2 * 3.14 * r\n return circle_circumference","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":16813,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":31042,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":29135,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31864,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def rectangle_perimeter(r, n):\n rectangle_perimeter = 2 * (r + n)\n return rectangle_perimeter","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":41227,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":16960,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_perimeter(n):\n square_perimeter = n * 4\n return square_perimeter","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":33961,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def circle_area(r):\n circle_area = r * r * 3.14\n return circle_area","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":17938,"user":"99d129a4-97af-42ac-a543-23b9157331f8","date":"2017-10-04 12:04:37","func_code":"def square_area(n):\n square_area = n * n\n return square_area","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":6108,"user":"065cc64f-1be3-42fb-9f2e-8280c11aa573","date":"2017-10-04 12:06:42","func_code":"def sort(a):\n b = a\n b = 0\n j = 1\n while j < len(a):\n if a[j] < a[b]:\n p = j\n j = j + 1\n return b","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":12063,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-04 12:06:44","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":23348,"user":"b588e248-0a0b-40c1-ad90-f9fc1d050dd0","date":"2017-10-04 12:06:44","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, p, i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} @@ -7341,43 +6779,43 @@ {"submission_id":24613,"user":"29ee2b4b-4fb7-46c9-986d-b715bcee0fbe","date":"2017-10-04 12:14:41","func_code":"def swap(a, i, j):\n temp = a[i]\n a[i] = a[j]\n a[j] = temp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n l = 0\n while l < len(a):\n p = find_position_of_smallest(a, l)\n swap(a, p, l)\n l = l + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":20766,"user":"e5dedf13-336d-484f-81bc-d7898f0f002e","date":"2017-10-04 12:22:33","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":23242,"user":"e5dedf13-336d-484f-81bc-d7898f0f002e","date":"2017-10-04 12:22:33","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":25282,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":39873,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def perimeter(n):\n per = n * 4\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n * 2 + m * 2\n return rec","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2025,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":25103,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":15937,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1427,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def perimeter(n):\n per = n * 4\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n * 2 + m * 2\n return rec","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20998,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2808,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37333,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":20451,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:47:02","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11193,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:47:02","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40235,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def perimeter(n):\n per = n + n + n + n\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n + m + n + m\n return rec","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42158,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":11622,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7878,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27232,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4418,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def perimeter(n):\n result1 = n + n + n + n\n return result1\n\n\ndef rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27697,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31504,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32490,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":1467,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13422,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def square_area(n):\n result = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17102,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32439,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4407,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":28474,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18271,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7617,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42057,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9053,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9336,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":9633,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27502,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":4238,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":8710,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":27286,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6111,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":25282,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":39873,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def perimeter(n):\n per = n * 4\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n * 2 + m * 2\n return rec","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":2025,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":25103,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":15937,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":1427,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:32:34","func_code":"def perimeter(n):\n per = n * 4\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n * 2 + m * 2\n return rec","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":20998,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":2808,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":37333,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-04 18:33:08","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":20451,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:47:02","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":11193,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:47:02","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":40235,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def perimeter(n):\n per = n + n + n + n\n return per\n\n\ndef rectangle_perimeter(n, m):\n rec = n + m + n + m\n return rec","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":42158,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def circle_area(n):\n circ = 3.14 * (n * n)\n return circ","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":11622,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:52:19","func_code":"def circle_circumference(n):\n circle = 2 * 3.14 * n\n return circle","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":7878,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":27232,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4418,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:55:29","func_code":"def perimeter(n):\n result1 = n + n + n + n\n return result1\n\n\ndef rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":27697,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":31504,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":32490,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":1467,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":13422,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:56:53","func_code":"def square_area(n):\n result = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":false} +{"submission_id":17102,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":32439,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":4407,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":28474,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":18271,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":7617,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":42057,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":9053,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":9336,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_area(n):\n result2 = 3.14 * (n * n)\n return result2","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":9633,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":27502,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":4238,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_perimeter(n):\n result1 = n + n + n + n\n return result1","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":8710,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def rectangle_perimeter(n, m):\n result4 = n + m + n + m\n return result4","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":27286,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def square_area(n):\n result = n * n\n return result","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":6111,"user":"ce889881-69dd-4396-aceb-e6f7dddc2c14","date":"2017-10-05 15:57:34","func_code":"def circle_circumference(n):\n result3 = 2 * 3.14 * n\n return result3","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} {"submission_id":5534,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 16:06:07","func_code":"def sort(a):\n a.sort(a)","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":32567,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 16:19:09","func_code":"def sort(a):\n i = 0\n while i < len(a):\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":907,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 16:43:08","func_code":"def sort(a):\n i = 0\n while i < len(a):\n if a[i] < a[n]:\n n = i\n i = i + 1\n tmp = a[i]\n a[i] = a[n]\n a[n] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} @@ -7398,46 +6836,46 @@ {"submission_id":25442,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 17:02:28","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":21284,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 17:02:28","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":21379,"user":"7c4a70b0-f238-44c3-98e9-fba759a5438b","date":"2017-10-06 17:02:28","func_code":"def sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":38831,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 14:54:51","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":26426,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 14:54:51","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry_1.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":7189,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6264,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30885,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":29647,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def square_perimeter(n):\n sp = n + n + n + n","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13951,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def circle_area(n):\n ca = 3.14 * n","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":18871,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36063,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def circle_area(n):\n ca = 3.14 * n\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":36807,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":23049,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":32843,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":38631,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22383,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":13024,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":30708,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":2189,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42034,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5922,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":110,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def rectangle_perimeter(n, m):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":40385,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42162,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":37056,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":42251,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def rectangle_perimeter(n, m):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":6507,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":22023,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":12042,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":38831,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 14:54:51","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":26426,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 14:54:51","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":7189,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":false} +{"submission_id":6264,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":30885,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":29647,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def square_perimeter(n):\n sp = n + n + n + n","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":false} +{"submission_id":13951,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:04:47","func_code":"def circle_area(n):\n ca = 3.14 * n","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":18871,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":36063,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def circle_area(n):\n ca = 3.14 * n\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":36807,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":23049,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":32843,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:05:47","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":38631,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":22383,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":13024,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":30708,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":2189,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:27","func_code":"def rectangle_perimeter(n):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":false} +{"submission_id":42034,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":5922,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_area(n):\n ca = 3.14 * n * n\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":false} +{"submission_id":110,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def rectangle_perimeter(n, m):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":40385,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":42162,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":37056,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_perimeter(n):\n sp = n + n + n + n\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":42251,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def rectangle_perimeter(n, m):\n rp = n + n + m + m\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":6507,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":22023,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def square_area(n):\n sq = n * n\n return sq","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":12042,"user":"61140bd5-cdb2-4a78-b4a3-ad76b0ca223a","date":"2017-10-09 15:06:52","func_code":"def circle_circumference(n):\n cc = 2 * 3.14 * n\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} {"submission_id":31209,"user":"557b99ed-3c48-4070-b887-de4b2d06ac8d","date":"2017-10-11 12:00:21","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n swap(a, i, find_position_of_smallest + i)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":false} {"submission_id":8946,"user":"557b99ed-3c48-4070-b887-de4b2d06ac8d","date":"2017-10-11 12:01:28","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} {"submission_id":15847,"user":"557b99ed-3c48-4070-b887-de4b2d06ac8d","date":"2017-10-11 12:01:28","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef find_position_of_smallest(a, i):\n p = i\n while i < len(a):\n if a[i] < a[p]:\n p = i\n i = i + 1\n return p\n\n\ndef sort(a):\n i = 0\n while i < len(a):\n p = find_position_of_smallest(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"sort","assignment_id":"sort","academic_year":2016,"module":"ca277","description":"Sort a list by repeatedly moving the minimimum of the remaining sublist to the front.","test":"assert sort([0])==None and sort([0])==None and sort([])==None and sort([])==None and sort([' '])==None and sort([' '])==None and sort([70, 339305549])==None and sort([70, 339305549])==None","correct":true} -{"submission_id":40953,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_area(a):\n sa = a * a\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":10974,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_perimeter(b):\n sp = b + b + b + b\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":16429,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_circumference(d):\n cc = 2 * 3.14 * d\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":33513,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def rectangle_perimeter(e, f):\n rp = 2 * (e + f)\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":5465,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_area(c):\n ca = 3.14 * c ** 2\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":17854,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_perimeter(b):\n sp = b + b + b + b\n return sp","func_name":"square_perimeter","assignment_id":"geometry.py_ca277_square_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":35411,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_circumference(d):\n cc = 2 * 3.14 * d\n return cc","func_name":"circle_circumference","assignment_id":"geometry.py_ca277_circle_circumference","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21343,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def rectangle_perimeter(e, f):\n rp = 2 * (e + f)\n return rp","func_name":"rectangle_perimeter","assignment_id":"geometry.py_ca277_rectangle_perimeter","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":21263,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_area(c):\n ca = 3.14 * c ** 2\n return ca","func_name":"circle_area","assignment_id":"geometry.py_ca277_circle_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} -{"submission_id":31822,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_area(a):\n sa = a * a\n return sa","func_name":"square_area","assignment_id":"geometry.py_ca277_square_area","academic_year":2016,"module":"ca277","description":null,"test":"","correct":true} +{"submission_id":40953,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_area(a):\n sa = a * a\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} +{"submission_id":10974,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_perimeter(b):\n sp = b + b + b + b\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":16429,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_circumference(d):\n cc = 2 * 3.14 * d\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":33513,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def rectangle_perimeter(e, f):\n rp = 2 * (e + f)\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":5465,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_area(c):\n ca = 3.14 * c ** 2\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":17854,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_perimeter(b):\n sp = b + b + b + b\n return sp","func_name":"square_perimeter","assignment_id":"square_perimeter","academic_year":2016,"module":"ca277","description":"Returns the perimeter of a square.","test":"assert square_perimeter(0)==0 and square_perimeter(-12684)==-50736","correct":true} +{"submission_id":35411,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_circumference(d):\n cc = 2 * 3.14 * d\n return cc","func_name":"circle_circumference","assignment_id":"circle_circumference","academic_year":2016,"module":"ca277","description":"Return the circumference of a circle.","test":"assert circle_circumference(0)==0.0 and circle_circumference(25619)==160887.32","correct":true} +{"submission_id":21343,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def rectangle_perimeter(e, f):\n rp = 2 * (e + f)\n return rp","func_name":"rectangle_perimeter","assignment_id":"rectangle_perimeter","academic_year":2016,"module":"ca277","description":"Return the perimeter of a rectangle with the given coordinates.","test":"assert rectangle_perimeter(0,0)==0 and rectangle_perimeter(7968917888512863576,-18677)==15937835777025689798","correct":true} +{"submission_id":21263,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def circle_area(c):\n ca = 3.14 * c ** 2\n return ca","func_name":"circle_area","assignment_id":"circle_area","academic_year":2016,"module":"ca277","description":"Return the area of a circle.","test":"assert circle_area(0)==0.0 and circle_area(-1160877629)==4.231579770269758e+18","correct":true} +{"submission_id":31822,"user":"6618fe7e-6fd3-499b-a742-8d68ec712ad3","date":"2017-11-06 13:28:34","func_code":"def square_area(a):\n sa = a * a\n return sa","func_name":"square_area","assignment_id":"square_area","academic_year":2016,"module":"ca277","description":"Return the area of a square.","test":"assert square_area(0)==0 and square_area(21138)==446815044","correct":true} {"submission_id":36040,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-11-08 06:24:49","func_code":"def reverse(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[len(a) - i - 1])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":27850,"user":"df8dd1dd-a7c8-46c0-b89f-ec170a81f08a","date":"2017-11-08 06:24:49","func_code":"def reverse(a):\n b = []\n i = 0\n while i < len(a):\n b.append(a[len(a) - i - 1])\n i = i + 1\n return b","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":14905,"user":"2a5e3eed-41c7-46e6-9bee-3acc21c1f81b","date":"2017-11-08 09:55:26","func_code":"def reverse(a, i):\n i = 0\n lines = sys.stdin.readlines()\n while i < len(a):\n print(lines[i] - 1 - i)\n i = i + 1\n return a","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":false} @@ -7520,14 +6958,14 @@ {"submission_id":24963,"user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":"2017-11-14 15:48:27","func_code":"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","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":38042,"user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":"2017-11-14 16:00:34","func_code":"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","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} {"submission_id":3539,"user":"c601c339-f2b7-4564-a96b-2de852eabb7b","date":"2017-11-14 16:00:34","func_code":"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","func_name":"reverse","assignment_id":"reverse_iter","academic_year":2016,"module":"ca277","description":"Iteratively 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']","correct":true} -{"submission_id":24110,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:38:38","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":27398,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:38:38","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36548,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:43:10","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12084,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:43:10","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3724,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31994,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":265,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19989,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":24110,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:38:38","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":27398,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:38:38","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":36548,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:43:10","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":12084,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:43:10","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":3724,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":31994,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":265,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":19989,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 11:44:18","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":9061,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 12:50:29","func_code":"def selection_sort(a):\n i = 0","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":40858,"user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":"2017-12-02 13:11:08","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":3530,"user":"4a7eb3c1-23d7-4547-a3af-8d940245a9a3","date":"2017-12-02 13:11:08","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -7538,14 +6976,14 @@ {"submission_id":27868,"user":"919f743b-c8d6-4955-bb0f-9ca7c9bbe1be","date":"2017-12-02 13:43:03","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":41334,"user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":"2017-12-02 22:43:45","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} {"submission_id":33641,"user":"9083bfed-4cf9-4111-9300-37bfea094de1","date":"2017-12-02 22:43:45","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1\n return a","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":true} -{"submission_id":35075,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:10:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":14341,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:10:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36702,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:12:40","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28047,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:12:40","func_code":"def area(r):\n return (r * pi) ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28671,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12899,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":11406,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32634,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":35075,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:10:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":14341,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:10:01","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":36702,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:12:40","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":28047,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:12:40","func_code":"def area(r):\n return (r * pi) ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":28671,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":12899,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":11406,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def circumference(r):\n return r * pi * 2","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":32634,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:13:37","func_code":"def area(r):\n return r ** 2 * pi","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":40561,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:17:31","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = a[i]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":39271,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:18:09","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = a[i]\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":28032,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-03 15:18:44","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -7557,12 +6995,12 @@ {"submission_id":34065,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-12-03 19:08:31","func_code":"def union(a, b):\n a = a + b\n seen = {}\n c = []\n i = 0\n while i < len(a):\n if a[i] not in seen:\n seen[a[i]] = True\n i = i + 1\n for number in seen:\n c.append(number)\n return c","func_name":"union","assignment_id":"union","academic_year":2016,"module":"ca277","description":"Merge two lists into a single one.","test":"assert union([],[])==[] and union([25785],[25785])==[25785] and union([-90, 21135, 29310, -8059, 7114, -90, -5808, 1333, -18691, 7, -19450, 67745575129021321678860432754396203799, -9288, -161403197171354040520992237328119268342, 49, 120528818203287557, 133011337445419463191476642795673848676, 11952, 11996],[5, -9316, 7379237229304681733])==[-90, 21135, 29310, -8059, 7114, -5808, 1333, -18691, 7, -19450, 67745575129021321678860432754396203799, -9288, -161403197171354040520992237328119268342, 49, 120528818203287557, 133011337445419463191476642795673848676, 11952, 11996, 5, -9316, 7379237229304681733]","correct":true} {"submission_id":19545,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-12-03 19:08:31","func_code":"def intersection(a, b):\n seen = {}\n append = {}\n c = []\n i = 0\n while i < len(a):\n seen[a[i]] = True\n i = i + 1\n i = 0\n while i < len(b):\n if b[i] in seen and b[i] not in append:\n c.append(b[i])\n append[b[i]] = True\n i = i + 1\n return c","func_name":"intersection","assignment_id":"intersection","academic_year":2016,"module":"ca277","description":"Return the intersection between two lists.","test":"assert intersection([],[])==[] and intersection([20052, 20052, -9991],[102, 20052, -9991])==[20052, -9991] and intersection([38908273694008580353068229963801163341, 59, 38908273694008580353068229963801163341, -38, 28239, -2723, 24559, -5794],[38908273694008580353068229963801163341, 59, 38908273694008580353068229963801163341, -38, 28239, -2723, 24559, -5794])==[38908273694008580353068229963801163341, 59, -38, 28239, -2723, 24559, -5794]","correct":true} {"submission_id":16824,"user":"dbbf7e1a-95ff-4b8a-b26d-18d6ccae623c","date":"2017-12-03 19:08:31","func_code":"def intersection(a, b):\n seen = {}\n append = {}\n c = []\n i = 0\n while i < len(a):\n seen[a[i]] = True\n i = i + 1\n i = 0\n while i < len(b):\n if b[i] in seen and b[i] not in append:\n c.append(b[i])\n append[b[i]] = True\n i = i + 1\n return c","func_name":"intersection","assignment_id":"intersection","academic_year":2016,"module":"ca277","description":"Return the intersection between two lists.","test":"assert intersection([],[])==[] and intersection([20052, 20052, -9991],[102, 20052, -9991])==[20052, -9991] and intersection([38908273694008580353068229963801163341, 59, 38908273694008580353068229963801163341, -38, 28239, -2723, 24559, -5794],[38908273694008580353068229963801163341, 59, 38908273694008580353068229963801163341, -38, 28239, -2723, 24559, -5794])==[38908273694008580353068229963801163341, 59, -38, 28239, -2723, 24559, -5794]","correct":true} -{"submission_id":26293,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:13:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21164,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:13:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41120,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":2781,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25053,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1190,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":26293,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:13:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":21164,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:13:10","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":41120,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":2781,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":25053,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":1190,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:18:06","func_code":"def area(r):\n return pi * r * r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":2358,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:28:48","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n a[i] = a[-i - 1]\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":1988,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:29:23","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n a[i] = a[len(a) - i - 1]\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":31189,"user":"3a3b6ee9-ae37-4d43-b10a-27ade2385dcd","date":"2017-12-04 10:32:20","func_code":"def reverse(a):\n i = 0\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[-i - 1]\n a[-i - 1] = tmp\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -7914,16 +7352,16 @@ {"submission_id":20434,"user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":"2017-12-06 11:34:42","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":35842,"user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":"2017-12-06 11:36:10","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":3824,"user":"f278f0d6-3389-497b-a30b-f0d8ecebb7e1","date":"2017-12-06 11:36:10","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":26776,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:45:16","func_code":"def double(n):\n n = n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":4877,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:46:05","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1903,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:57:31","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18137,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:57:31","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7441,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:13","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":37125,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:13","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26901,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15080,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23898,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":28307,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":26776,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:45:16","func_code":"def double(n):\n n = n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":4877,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:46:05","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":1903,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:57:31","func_code":"def circumference(r):\n return 2 * 3.141 * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":18137,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:57:31","func_code":"def area(r):\n return 3.141 * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":7441,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:13","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":37125,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:13","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":26901,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":15080,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":23898,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":28307,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 11:58:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":540,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 12:03:03","func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":11347,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-06 12:03:03","func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":4193,"user":"86f3bfd9-abca-4a94-ac95-d257d354e3e5","date":"2017-12-06 12:03:42","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n assert low <= mid < high\n if a[mid] < q:\n low = mid + 1\n assert a[low - 1] < q\n else:\n high = mid\n assert q <= a[high]\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} @@ -7936,8 +7374,8 @@ {"submission_id":3861,"user":"48db4273-a21e-41be-bca6-9b6444a15cbf","date":"2017-12-06 12:56:43","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":36210,"user":"fc726678-a7a5-405b-bc49-844b42ef4a2b","date":"2017-12-06 15:18:12","func_code":"def reverse(a):\n a = a[::-1]\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} {"submission_id":24632,"user":"fc726678-a7a5-405b-bc49-844b42ef4a2b","date":"2017-12-06 15:18:12","func_code":"def reverse(a):\n a = a[::-1]\n return a","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":true} -{"submission_id":22252,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 15:33:00","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":23534,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 15:33:00","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":22252,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 15:33:00","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":23534,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 15:33:00","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":25507,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 16:16:57","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":8622,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 16:16:57","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":23208,"user":"68f143f9-a076-4b95-afe1-e3828c2d0f4e","date":"2017-12-06 16:17:30","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n return\n\n\ndef reverse(a):\n return swap(a, 2, 3)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -7956,13 +7394,13 @@ {"submission_id":3167,"user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":"2017-12-06 18:31:41","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":11533,"user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":"2017-12-06 18:31:41","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":10551,"user":"35d18426-1565-4cbc-afa0-82ff8cbc8cbd","date":"2017-12-06 18:31:41","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":8770,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:42:53","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":41396,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:42:53","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13651,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:32","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1877,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":3776,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":12337,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":29198,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":8770,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:42:53","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":41396,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:42:53","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13651,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:32","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":1877,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":3776,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":12337,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":29198,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:45:54","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":836,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:48:33","func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(len(a) - i)","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":28000,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:48:45","func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(len(a) - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":24882,"user":"6a72520c-4c39-4c03-b7cf-5550dbde3147","date":"2017-12-06 19:49:04","func_code":"def reverse(a):\n i = 0\n while i < len(a):\n print(len(a) - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -7976,31 +7414,31 @@ {"submission_id":12105,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-06 20:29:02","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":37958,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-06 20:29:43","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} {"submission_id":26158,"user":"4a1f2726-b713-40f0-b544-9de55d617a12","date":"2017-12-06 20:29:43","func_code":"def bsearch(a, q):\n low = 0\n high = len(a)\n while low < high:\n mid = (low + high) \/ 2\n if a[mid] < q:\n low = mid + 1\n else:\n high = mid\n return low","func_name":"bsearch","assignment_id":"bsearch","academic_year":2016,"module":"ca116","description":"Search for element q in the sorted array a.","test":"assert bsearch([],12)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],5)==4 and bsearch([1, 2, 3, 4, 6, 7, 8],1)==0 and bsearch([1, 2, 3, 4, 6, 7, 8],4)==3","correct":false} -{"submission_id":21305,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:25","func_code":"def double(n):\n n = a * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":21986,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:41","func_code":"def double(n):\n a = n * 2\n return a","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":13134,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:41","func_code":"def double(n):\n a = n * 2\n return a","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":21305,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:25","func_code":"def double(n):\n n = a * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":21986,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:41","func_code":"def double(n):\n a = n * 2\n return a","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":13134,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:24:41","func_code":"def double(n):\n a = n * 2\n return a","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":40322,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:28:30","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":32210,"user":"c0d569cd-4374-4e65-8e98-e814031fb3ca","date":"2017-12-07 00:28:30","func_code":"def swap(a, i, j):\n tmp = a[j]\n a[j] = a[i]\n a[i] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":10962,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:41:59","func_code":"def double(n):\n print(2 * n)","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":20797,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:45:54","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":39957,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:45:54","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":8145,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":24254,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":15666,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":26632,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":10962,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:41:59","func_code":"def double(n):\n print(2 * n)","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":false} +{"submission_id":20797,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:45:54","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":39957,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:45:54","func_code":"def double(n):\n return 2 * n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":8145,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":24254,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":15666,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def circumference(r):\n return 2 * pi * r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":26632,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 00:59:17","func_code":"def area(r):\n return pi * r ** 2","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} {"submission_id":6085,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 01:18:48","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":10214,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 01:18:48","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n swap(a, i, j)\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":568,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:11:42","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":10497,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:18:53","func_code":"def area(r):\n r = r ** 2\n a = 2 * 3.141 * r\n return a","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22387,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:18:53","func_code":"def circumference(r):\n a = 2 * 3.141 * r\n return a","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":14113,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:22:15","func_code":"def circumference(r):\n r = 2 * 3.141 * r\n return r","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":7839,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:22:15","func_code":"def area(r):\n r = r ** 2\n r = 3.141 * r\n return r","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9784,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def circumference(r):\n a = 2 * pi * r\n return a","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":10796,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def area(r):\n r = r ** 2\n a = pi * r\n return a","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":25376,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def circumference(r):\n a = 2 * pi * r\n return a","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":32189,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def area(r):\n r = r ** 2\n a = pi * r\n return a","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":36280,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-07 10:24:06","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":1775,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-07 10:24:06","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":568,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:11:42","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":10497,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:18:53","func_code":"def area(r):\n r = r ** 2\n a = 2 * 3.141 * r\n return a","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":22387,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:18:53","func_code":"def circumference(r):\n a = 2 * 3.141 * r\n return a","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":14113,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:22:15","func_code":"def circumference(r):\n r = 2 * 3.141 * r\n return r","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":true} +{"submission_id":7839,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:22:15","func_code":"def area(r):\n r = r ** 2\n r = 3.141 * r\n return r","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":true} +{"submission_id":9784,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def circumference(r):\n a = 2 * pi * r\n return a","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":10796,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def area(r):\n r = r ** 2\n a = pi * r\n return a","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":25376,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def circumference(r):\n a = 2 * pi * r\n return a","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":32189,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:23:17","func_code":"def area(r):\n r = r ** 2\n a = pi * r\n return a","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":36280,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-07 10:24:06","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":1775,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-07 10:24:06","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":30825,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:45:03","func_code":"def reverse(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if int(a[j]) > int(a[p]):\n p = j\n j = j + 1\n return p","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":12963,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 10:46:40","func_code":"def reverse(a):\n p = i\n j = i + 1\n while j < len(a):\n if int(a[j]) > int(a[p]):\n p = j\n j = j + 1\n return p","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":13703,"user":"87fe2a11-c843-4db7-a092-fa2c47cf613f","date":"2017-12-07 10:51:50","func_code":"def reverse(a):\n i = 0\n j = len(a) - 1\n while i < len(a) \/ 2:\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n i = i + 1\n j = j - 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -8009,14 +7447,14 @@ {"submission_id":3411,"user":"e0141b22-9477-459d-8e1c-18f5d5ef6624","date":"2017-12-07 10:53:56","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":5494,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 11:07:11","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":15253,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 11:07:11","func_code":"def swap(a, 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 swap(a, i, len(a) - 1 - i)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} -{"submission_id":21969,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:26:30","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":10942,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:26:30","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":29703,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:28:52","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":9698,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:28:52","func_code":"def area(r):\n x = (pi * r) ** 2\n return x","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18555,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def area(r):\n x = pi * r ** 2\n return x","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":18763,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def area(r):\n x = pi * r ** 2\n return x","func_name":"area","assignment_id":"func_circle.py_ca116_area","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":22581,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":6078,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"func_circle.py_ca116_circumference","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":21969,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:26:30","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":10942,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:26:30","func_code":"def double(n):\n y = n * 2\n return y","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":29703,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:28:52","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":9698,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:28:52","func_code":"def area(r):\n x = (pi * r) ** 2\n return x","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":18555,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def area(r):\n x = pi * r ** 2\n return x","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":18763,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def area(r):\n x = pi * r ** 2\n return x","func_name":"area","assignment_id":"area","academic_year":2016,"module":"ca116","description":"Return the area of a circle with the given coordinates.","test":"assert area(0)==0.0 and area(-14329)==644910876.981","correct":false} +{"submission_id":22581,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} +{"submission_id":6078,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:29:17","func_code":"def circumference(r):\n y = 2 * pi * r\n return y","func_name":"circumference","assignment_id":"circumference","academic_year":2016,"module":"ca116","description":"Return the circumference of a circle.","test":"assert circumference(0)==0.0 and circumference(-23091)==-145057.662","correct":false} {"submission_id":1859,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:34:22","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":31016,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 11:34:22","func_code":"def swap(a, 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 swap(a, i, len(a) - i - 1)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":3930,"user":"24b328b2-2b24-43bc-9468-d9ba1d7df521","date":"2017-12-07 12:11:28","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef reverse(a):\n i = 0\n while i < len(a) \/ 2:\n j = len(a) - i - 1\n swap(a, i, j)\n i = i + 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} @@ -8036,13 +7474,13 @@ {"submission_id":39126,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 12:53:07","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef smallest_element(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[p] < a[j]:\n j = p\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = smallest_element(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":6352,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 12:53:26","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef smallest_element(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = smallest_element(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":35226,"user":"da1464fe-2ccb-4c4e-b174-962f2177debd","date":"2017-12-07 12:53:26","func_code":"def swap(a, i, j):\n tmp = a[i]\n a[i] = a[j]\n a[j] = tmp\n\n\ndef smallest_element(a, i):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j = j + 1\n return p\n\n\ndef selection_sort(a):\n i = 0\n while i < len(a):\n p = smallest_element(a, i)\n swap(a, i, p)\n i = i + 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":17457,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":16573,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":31713,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":17457,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":16573,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":31713,"user":"e4dcdad8-3da9-41c5-bbd1-3df3433e270d","date":"2017-12-07 19:32:39","func_code":"def double(n):\n n = n * 2\n return n","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} {"submission_id":13369,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:13:14","func_code":"def swap(a, 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 swap(a, i, -i - 1)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":39902,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:13:14","func_code":"def swap(a, 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 swap(a, i, -i - 1)\n i += 1","func_name":"reverse","assignment_id":"reverse_by_swap","academic_year":2016,"module":"ca116","description":"Reverse a list of elements by swapping its elements.","test":"assert reverse([])==[] and reverse([0])==[0] and reverse([-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052])==[1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103] and reverse([-103, 113466788817036974729578468346735566318, 31758, 1867157052, 10933, -70, 1867157052])==[1867157052, -70, 10933, 1867157052, 31758, 113466788817036974729578468346735566318, -103] and reverse([1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103])==[-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052] and reverse([1867157052, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, -103])==[-103, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, 1867157052] and reverse([-103, 113466788817036974729578468346735566318, 31758, -70, 10933, 1867157052, 1867157052])==[1867157052, 1867157052, 10933, -70, 31758, 113466788817036974729578468346735566318, -103] and reverse([[1]])==[[1]]","correct":false} {"submission_id":38337,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:13:20","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} {"submission_id":11771,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:13:20","func_code":"def selection_sort(a):\n i = 0\n while i < len(a):\n p = i\n j = i + 1\n while j < len(a):\n if a[j] < a[p]:\n p = j\n j += 1\n tmp = a[p]\n a[p] = a[i]\n a[i] = tmp\n i += 1","func_name":"selection_sort","assignment_id":"selection_sort","academic_year":2016,"module":"ca116","description":"Sort a list by repeatedly move minimimum of remaining sublist to front.","test":"assert selection_sort([])==[] and selection_sort([0])==[0] and selection_sort([25204, -1, -18176])==[-18176, -1, 25204] and selection_sort([-18176, -1, 25204])==[-18176, -1, 25204]","correct":false} -{"submission_id":20886,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":19678,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} -{"submission_id":305,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"func_double.py_ca116_double","academic_year":2016,"module":"ca116","description":null,"test":"","correct":true} +{"submission_id":20886,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":19678,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true} +{"submission_id":305,"user":"8fca450a-2117-453b-8f1b-f55a98c9bdb9","date":"2017-12-13 15:15:21","func_code":"def double(n):\n return n * 2","func_name":"double","assignment_id":"double","academic_year":2016,"module":"ca116","description":"Double a number or a string.","test":"assert double(0)==0 and double(-7601)==-15202","correct":true}