Skip to content

Commit 074967b

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

physics/hookes_law.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
its original state.
1313
Reference: https://en.wikipedia.org/wiki/Hooke%27s_law
1414
"""
15+
16+
1517
def hookes_law(k: float, x: float) -> float:
1618
"""
1719
Calculate the Hookes law from the given values of spring constant 'k'
@@ -24,6 +26,8 @@ def hookes_law(k: float, x: float) -> float:
2426
-900
2527
"""
2628
return round(-k * x, 2)
29+
30+
2731
if __name__ == "__main__":
2832
import doctest
2933

0 commit comments

Comments
 (0)