Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24dbdd0

Browse files
Raghav-Belltianyizheng02
andauthored
Update coulombs_law.py docs (TheAlgorithms#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 <tianyizheng02@gmail.com>
1 parent 700df39 commit 24dbdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎physics/coulombs_law.py‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /