Triangle Pattern Code In Python