Skip to content

Commit c1a3fec

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3c57056 commit c1a3fec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

physics/escape_velocity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import math
22

3+
34
def escape_velocity(mass: float, radius: float) -> float:
45
"""
56
Calculates the escape velocity needed to break free from a celestial body's gravitational field.
@@ -45,8 +46,8 @@ def escape_velocity(mass: float, radius: float) -> float:
4546

4647

4748
if __name__ == "__main__":
48-
4949
import doctest
50+
5051
doctest.testmod()
5152
print("Calculate escape velocity of a celestial body...\n")
5253

0 commit comments

Comments
 (0)