new file:   triangle.py