A lambda
really isn't supposed to be used as a named function just make an actual function or use the append function. But if this is necessary:
y = lambda l,x: [*l,x]
Although a def would be more appropriate and can also be done in one line:
def y(l,x): return [*l,x]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…