How Do You Use The Triangle Method In Python