Ad

Now its a one liner!

Code
Diff
  • 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])
Code
Diff
  • def returnhundred(word):return 100
        
    • def returnhundred(word):
    • word = str(word)
    • return 10**2
    • def returnhundred(word):return 100