Print Pascal's triangle in an isosceles format.
Implement print_pascals_triangle(n), which returns the formatted triangle as one string. Each row contains space-separated values, rows are separated by , and no line may contain trailing spaces. The input n is the number of rows.
def print_pascals_triangle(n):