Mbpp/788

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度400 字符
模型生成的代码 (400 字符)
def new_tuple(lst, s):
    """
    Create a new tuple by combining all elements from the list and the string.
    The string is added as the last element of the resulting tuple.
    
    Args:
        lst (list): A list of elements.
        s (str): A string to append.
    
    Returns:
        tuple: A tuple containing all list elements followed by the string.
    """
    return tuple(lst) + (s,)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试