In [14]: import math In [15]: math.radians(90) Out[15]: 1.5707963267948966 In [16]: math.degrees(math.radians(90)) Out[16]: 90.0