yapf edits

This commit is contained in:
lukew3
2020-10-19 14:08:13 -04:00
parent 233f8bf180
commit 90a794cc05
41 changed files with 347 additions and 240 deletions

View File

@@ -5,7 +5,7 @@ def sectorAreaFunc(maxRadius=49, maxAngle=359):
Radius = random.randint(1, maxRadius)
Angle = random.randint(1, maxAngle)
problem = f"Given radius, {Radius} and angle, {Angle}. Find the area of the sector."
secArea = float((Angle / 360) * math.pi*Radius*Radius)
secArea = float((Angle / 360) * math.pi * Radius * Radius)
formatted_float = "{:.5f}".format(secArea)
solution = f"Area of sector = {formatted_float}"
return problem, solution