Create radianToDegFunc.py

Radian to Degree Conversion function created
This commit is contained in:
helplessThor
2020-10-20 00:32:02 +05:30
committed by GitHub
parent b2e7baa343
commit a007613424

View File

@@ -0,0 +1,12 @@
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