Code Triangle Shape In Python