Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Ooh, aah, just a little bit... solution in Creative category for The Angles of a Triangle by veky
def checkio(*sides):
from math import degrees, acos
angle = lambda x,y,z: round(degrees(acos((x*x+y*y-z*z)/2/x/y+1e-9)))
a, b, c = sorted(sides)
try: return angle(b, c, a), angle(c, a, b), angle(a, b, c)
except ValueError: return 0, 0, 0
April 4, 2015
Comments: