Week 8 Warm Up

Create a pascal's triangle using asterisks (*) rather than numbers. Each row should be represented as a list. For example, the third row would be ["*","**","*"].

>>> ================================ RESTART ================================
>>>
                                 *
                                * *
                              * ** *
                           * *** *** *
                       * **** ****** **** *
>>>

Step 1: Create and test a function that prints the row centered. Hint use the center function and choose an appropriate value to center the row in your console.

Step 2: Create and test a function that takes a row and returns a new row, representing the next row in the sequence. For example, with an argument of ["*","**","*"] your function should return ["*","***","***","*"].

Step 3: Create and test code that calls your two functions and prints a triangle of the given height.

Step 4: If you haven't already completed problem 4-3, modify your code solve that problem.