We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132e495 commit c0e5071Copy full SHA for c0e5071
physics/horizontal_projectile_motion.py
@@ -120,6 +120,6 @@ def test_motion() -> None:
120
v_dis = str(max_height(init_vel, angle))
121
t_time = str(total_time(init_vel, angle))
122
print("Results: ")
123
- print("Horizontal Distance: " + h_dis + " [m]")
124
- print("Maximum Height: " + v_dis + " [m]")
125
- print("Total Time: " + t_time + " [s]")
+ print(f"Horizontal Distance: {h_dis} [m]")
+ print(f"Maximum Height: {v_dis} [m]")
+ print(f"Total Time: {t_time} [s]")
0 commit comments