# Write a Python program to print Pascal’s Triangle # Print Pascal's Triangle in Pythonfrom math import factorial# input nn = 5for i in range(n):    for j in range(n-i+1):        # for left spacing        print(end=" ")    for j in range(i+1):        # nCr = n!/((n-r)!*r!)        print(factorial(i)//(factorial(j)*factorial(i-j)), end=" ")    # for new line    print()