We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723cc86 commit 77382d1Copy full SHA for 77382d1
1 file changed
physics/hookes_law.py
@@ -26,7 +26,7 @@ def hookes_law(spring_contant: float, displacement: float) -> float:
26
>>> hookes_law(300, 3)
27
-900
28
"""
29
- return round(-k * x, 2)
+ return round(-spring_constant * displacement, 2)
30
31
32
if __name__ == "__main__":
0 commit comments