Mbpp/170

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度362 字符
模型生成的代码 (362 字符)
def sum_range_list(lst, start, end):
    """
    Returns the sum of numbers in a list from index 'start' to index 'end' (inclusive).
    
    Parameters:
    lst (list): List of numbers.
    start (int): Start index.
    end (int): End index (inclusive).
    
    Returns:
    int/float: Sum of the slice lst[start:end+1]
    """
    return sum(lst[start:end+1])
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试