linter fix

This commit is contained in:
Luke Weiler
2020-10-19 21:28:42 -04:00
committed by GitHub
parent ce131477a7
commit 742a2ff4d3

View File

@@ -1,9 +1,10 @@
from .__init__ import * from .__init__ import *
from numpy import pi from numpy import pi
def degreeToRadFunc(max_rad=pi): def degreeToRadFunc(max_rad=pi):
a = random.randint(0, max_rad) a = random.randint(0, max_rad)
b = (180*a)/pi b = (180 * a) / pi
b = round(b, 2) b = round(b, 2)
problem = "Angle " + str(a) + " in degrees is = " problem = "Angle " + str(a) + " in degrees is = "
@@ -11,4 +12,5 @@ def degreeToRadFunc(max_rad=pi):
return problem, solution return problem, solution
radianToDeg = Generator("Radians to Degrees", 87, "Angle a in degrees is = ", "b", radianToDegFunc) radianToDeg = Generator("Radians to Degrees", 87, "Angle a in degrees is = ", "b", radianToDegFunc)