Update arc_length.py

followed the change request
This commit is contained in:
Guduly 2023-08-17 20:23:17 -05:00 committed by GitHub
parent 668ef1f78e
commit 8691180fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,13 +7,11 @@ def arc_length(angle: int, radius: int) -> float:
3.9269908169872414 3.9269908169872414
>>> arc_length(120, 15) >>> arc_length(120, 15)
31.415926535897928 31.415926535897928
>>> arc_length(90, 10)
15.7079632679
""" """
return 2 * pi * radius * (angle / 360) return 2 * pi * radius * (angle / 360)
if __name__ == "__main__": if __name__ == "__main__":
print(arc_length(90, 10)) print(arc_length(90, 10))
"""
>>> arc_length(90, 10)
15.7079632679
"""