Python Pattern Program With Solution