Printing Pyramid Patterns In Python