Files
mathgenerator/mathgenerator/funcs/radianToDegFunc.py
helplessThor a007613424 Create radianToDegFunc.py
Radian to Degree Conversion function created
2020-10-20 00:32:02 +05:30

13 lines
260 B
Python

from .__init__ import *
from numpy import pi
def degreeToRadFunc(max_rad=pi):
a = random.randint(0, max_rad)
b = (180*a)/pi
b = round(b, 2)
problem = "Angle " + str(a) + " in degrees is = "
solution = str(b)
return problem, solution