Building on Omri Barel's work, we can use the walrus operator to create this one-liner:
def pascal(n): return [x:=1] + [x:=x*(n-k) // (k+1) for k in range(n)]