Input:
Output: def pascal_triangle(n):
trow = [1]
y = [0]
for x in range(max(n, 0)):
print(trow)
trow=[l+r for l,r in zip(trow + y, y + trow)]
return n>=1
pascal_triangle(5)
Prompt: Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
Develop a function in Python that prints out the Pascal’s triangle for a given number of rows.
### Input:
### Output:
def pascal_triangle(n):
trow = [1]
y = [0]
for x in range(max(n, 0)):
print(trow)
trow=[l+r for l,r in zip(trow + y, y + trow)]
return n>=1
pascal_triangle(5)