Python Code For Pyramid Pattern