• Test results always return [90,90,90]

 

I would like to give some feedback about ...

From: http://www.checkio.org/mission/triangle-angles/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36

This is my code:

import math

def checkio(a, b, c):
anga = 0
angb = 0
angc = 0
angles = []
import math
if a + b > c:
    anga = round(convert(math.acos((b ** 2 + c ** 2 - a ** 2)/(2 * b * c))))
    print anga
    angb = round(convert(math.acos((a ** 2 + c ** 2 - b ** 2)/(2 * a * c))))
    print angb
    angc = round(convert(math.acos((a ** 2 + b ** 2 - c ** 2)/(2 * a * b))))
    print angc
    angles.append(anga)
    angles.append(angb)
    angles.append(angc)
    return angles
else:
    return [0, 0, 0]

def convert(rad):
    pi = 3.1415926535897932384626
    return (rad*180)/pi

I don't know if it is a problem with my browser or an internet problem, but whenever I run the test, it always returns [90,90,90], although in the drag 'n drop triangle, it works as expected. How should I fix this? Thanks in advance.