- must use python
- Write a nested for loopthat displays the following output using the same integer from parta:
                                                   1
                                               1  2  1
                                           1  2  4  2  1
                                       1  2  4  8  4  2  1
                                   1  2  4  816  8  4  2  1
                               1  2  4  8 16 32 16  8  4  2  1
                           1  2  4  8 16 32 64 3216  8  4  2  1
                       1  2  4  8 16 32 64 128 64 32 168  4  2  1
from part a: Write a program thatprompts the user to enter an integer from 1 to 15 and displays apyramid, as shown in the following sample run:
                       Enter the number of lines: 7
                      Â
                                                     1
                                                  2 1 2
                                               3 2 1 2 3
                                            4 3 2 1 2 3 4
                                         5 4 3 2 1 2 3 4 5
                                     65 4 3 2 1 2 3 4 5 6
                                   7 6 5 4 3 2 1 2 3 4 5 6 7