triangle.py