30 seconds of python

  Back to Home

rads_to_degrees

mathbeginner

Converts an angle from radians to degrees.

Use math.pi and the radian to degree formula to convert the angle from radians to degrees.

import math

def rads_to_degrees(rad):
  return (rad * 180.0) / math.pi