I've found that buggy geometry processed with the 'p' flag will crash Python. I've tested on two systems, both Mac. This reproduces the behaviour for me. Note the repeated vertex at index 4: from ...
This Python program allows you to check if a set of three numbers can form a valid triangle. It provides three user cases for checking triangles: To check if a set of three user-provided numbers can ...