Now its a one liner!
def find_triple(a,b):return sorted([a**2+b**2,a**2-b**2,2*a*b])
def find_triple(a, b):return sorted([a**2+b**2, a**2-b**2, 2*a*b])- def find_triple(a,b):return sorted([a**2+b**2,a**2-b**2,2*a*b])
Test.describe("Basic Tests") Test.assert_equals(find_triple(7,2),[28,45,53]) Test.assert_equals(find_triple(4,3),[7,24,25]) Test.assert_equals(find_triple(3,2),[5,12,13])
Test.describe("Basic Tests")Test.assert_equals(find_triple(7,2),[28,45,53])Test.assert_equals(find_triple(4,3),[7,24,25])- Test.describe("Basic Tests")
- Test.assert_equals(find_triple(7,2),[28,45,53])
- Test.assert_equals(find_triple(4,3),[7,24,25])
- Test.assert_equals(find_triple(3,2),[5,12,13])