Create degreeToRadFunc.py

This commit is contained in:
helplessThor
2020-10-19 21:07:46 +05:30
committed by GitHub
parent 7d1a1a250c
commit 6f7be5fef9

View File

@@ -0,0 +1,11 @@
from .__init__ import *
from numpy import pi
def degreeToRadFunc(max_deg=360):
a = random.randint(0, max_deg)
b = (pi*a)/180
problem = "Angle " + str(a) + " in radians is = "
solution = str(b)
return problem, solution