Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyizheng02 authored Dec 31, 2024
1 parent 66a8f93 commit 69d7624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physics/period_of_pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def period_of_pendulum(length: float) -> float:
"""
if length < 0:
raise ValueError("The length should be non-negative")
return (2 * pi) * (length / g) ** 0.5
return 2 * pi * (length / g) ** 0.5


if __name__ == "__main__":
Expand Down

0 comments on commit 69d7624

Please sign in to comment.