Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Angles of a Triangle by Moff
import math
def angle(a, b, c):
return round(math.degrees(math.acos((b ** 2 + c**2 - a ** 2) / (2 * b * c))))
def checkio(a, b, c):
return sorted([angle(a, b, c), angle(b, a, c), angle(c, a, b)]) if a < b + c and b < a + c and c < a + b else [0, 0, 0]
July 23, 2015