Skip to content

Commit c0e5071

Browse files
authored
Modified prints to f-string
1 parent 132e495 commit c0e5071

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

physics/horizontal_projectile_motion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ def test_motion() -> None:
120120
v_dis = str(max_height(init_vel, angle))
121121
t_time = str(total_time(init_vel, angle))
122122
print("Results: ")
123-
print("Horizontal Distance: " + h_dis + " [m]")
124-
print("Maximum Height: " + v_dis + " [m]")
125-
print("Total Time: " + t_time + " [s]")
123+
print(f"Horizontal Distance: {h_dis} [m]")
124+
print(f"Maximum Height: {v_dis} [m]")
125+
print(f"Total Time: {t_time} [s]")

0 commit comments

Comments
 (0)