add python of triangle