Write a Python function that prints out the first n rows of Pascal’s triangle
belongs to collection: Function programs in python with examples
All Answers
total answers (1)
belongs to collection: Function programs in python with examples
total answers (1)
I have used python 3.7 compiler for debugging purpose.
Result:
[1]
[1, 1]
[1, 2, 1]
[1, 3, 3, 1]
[1, 4, 6, 4, 1]
need an explanation for this answer? contact us directly to get an explanation for this answer