Spaces:
Sleeping
Sleeping
Deploy: tasks/easy/easy-3.json
Browse files- tasks/easy/easy-3.json +12 -0
tasks/easy/easy-3.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task_id": "easy-3",
|
| 3 |
+
"description": "Fix the multiply function missing return statement",
|
| 4 |
+
"buggy_code": "def multiply(a, b):\n result = a * b\n",
|
| 5 |
+
"correct_code": "def multiply(a, b):\n result = a * b\n return result\n",
|
| 6 |
+
"tests": [
|
| 7 |
+
{"input": [3, 4], "expected": 12},
|
| 8 |
+
{"input": [0, 5], "expected": 0},
|
| 9 |
+
{"input": [-2, 3], "expected": -6},
|
| 10 |
+
{"input": [7, 7], "expected": 49}
|
| 11 |
+
]
|
| 12 |
+
}
|