Generate a Pyramid Pattern using Python

Prompt

Result