Files
Auto-GPT/benchmark/agbenchmark/challenges/deprecated/code/3_modify/data.json
merwanehamadi 0e804e27dd Add more data challenges (#5390)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-28 19:30:08 -07:00

34 lines
987 B
JSON

{
"category": [
"code",
"iterate"
],
"cutoff": 120,
"dependencies": [
"TestReturnCodeWrite"
],
"eval_id": "092f3c8a-9723-4262-8e40-93d0cebba98a",
"ground": {
"answer": "def multiply_int(num, multiplier):\n return num * multiplier\n",
"eval": {
"type": "python"
},
"files": [
"test.py"
],
"should_contain": [
"8",
"49",
"-12"
],
"should_not_contain": []
},
"info": {
"description": "Builds on the previous function also take a multiplier .",
"difficulty": "intermediate",
"side_effects": []
},
"name": "ReturnCodeModify",
"task": "Modify the multiply_int function in sample_code.py to be able to pass in a 'multiplier' argument to multiply the 'num' by 'multiplier'. Both arguments are integers. You can make sure you have correctly done this by running test.py"
}