Mbpp/262

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度351 字符
模型生成的代码 (351 字符)
def split_two_parts(lst, L):
    """
    Takes a list and an integer L and splits the given list into two parts
    where the length of the first part of the list is L, and returns the
    resulting lists in a tuple.
    
    Example:
    >>> split_two_parts([1,1,2,3,4,4,5,1], 3)
    ([1, 1, 2], [3, 4, 4, 5, 1])
    """
    return (lst[:L], lst[L:])
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试