Write A Python Program To Generate The Pattern