Skip to content

Commit 24dbdd0

Browse files
Update coulombs_law.py docs (#9667)
* Update coulombs_law.py distance is positive non zero real number (float type) hence corrected docs which says only integer. * Update physics/coulombs_law.py --------- Co-authored-by: Tianyi Zheng <[email protected]>
1 parent 700df39 commit 24dbdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: physics/coulombs_law.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def coulombs_law(q1: float, q2: float, radius: float) -> float:
3232
17975103584.6
3333
"""
3434
if radius <= 0:
35-
raise ValueError("The radius is always a positive non zero integer")
35+
raise ValueError("The radius is always a positive number")
3636
return round(((8.9875517923 * 10**9) * q1 * q2) / (radius**2), 2)
3737

3838

0 commit comments

Comments
 (0)