Skip to content

Commit 0c8c4e7

Browse files
Update horizontal_projectile_motion.py
1 parent ac278a5 commit 0c8c4e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

physics/horizontal_projectile_motion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ def max_height(init_velocity: float, angle: float) -> float:
9494
>>> max_height("a", 20)
9595
Traceback (most recent call last):
9696
...
97-
TypeError: Invalid velocity. Should be a positive number.
97+
TypeError: Invalid velocity. Should be an integer or float.
9898
>>> horizontal_distance(30, "b")
9999
Traceback (most recent call last):
100100
...
101-
TypeError: Invalid angle. Range is 1-90 degrees.
101+
TypeError: Invalid angle. Should be an integer or float.
102102
"""
103103
check_args(init_velocity, angle)
104104
radians = deg_to_rad(angle)
@@ -128,7 +128,7 @@ def total_time(init_velocity: float, angle: float) -> float:
128128
>>> total_time(30, "b")
129129
Traceback (most recent call last):
130130
...
131-
TypeError: Invalid angle. Range is 1-90 degrees.
131+
TypeError: Invalid angle. Should be an integer or float.
132132
"""
133133
check_args(init_velocity, angle)
134134
radians = deg_to_rad(angle)

0 commit comments

Comments
 (0)