Python interview question - Code to Print Pyramid pattern

Python interview question - Code to Print Pyramid pattern